From 2ad2a79bd013afc28e33303a66a8ffc6721a991b Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 25 Nov 2024 10:39:15 +0800 Subject: [PATCH] fix: macOS error 50 on uploading files (#6853) --- .../presentation/editor_plugins/file/file_block_component.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart index 7077352c59..f0af6e77ea 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart @@ -323,8 +323,7 @@ class FileBlockComponentState extends State FileUrlType urlType, String url, ) async { - if ([FileUrlType.cloud, FileUrlType.network].contains(urlType) || - UniversalPlatform.isDesktopOrWeb) { + if ([FileUrlType.cloud, FileUrlType.network].contains(urlType)) { await afLaunchUrlString(url); } else { final result = await OpenFilex.open(url);