From 5f55f4d8dbda1a7a4fd7c4e63935c829ad767c0d Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Thu, 4 Jan 2024 17:35:16 +0800 Subject: [PATCH] fix: attachment reporting error while opening preview modal in table (#3318) * fix: attachment report error while opening preview modal * fix: attachment report error while opening preview modal --- .../client/src/schema-component/antd/upload/ReadPretty.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx index 1ce4e7d795..8f00abe2b2 100644 --- a/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx @@ -1,4 +1,4 @@ -import DownloadOutlined from '@ant-design/icons/DownloadOutlined'; +import { DownloadOutlined } from '@ant-design/icons'; import { Field } from '@formily/core'; import { useField } from '@formily/react'; import { isString } from '@nocobase/utils/client'; @@ -39,7 +39,6 @@ ReadPretty.File = function File(props: UploadProps) { function closeIFrameModal() { setVisible(false); } - return wrapSSR(