From 7db0d1f9617f9e9212cb855bd964207085f3f509 Mon Sep 17 00:00:00 2001 From: scottsut Date: Tue, 19 Sep 2023 16:53:34 +0800 Subject: [PATCH] fix: Save to dashboard tree show incorrect --- frontend/src/app/components/SaveToDashboard.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/components/SaveToDashboard.tsx b/frontend/src/app/components/SaveToDashboard.tsx index 4e9e45f55..9928aff48 100644 --- a/frontend/src/app/components/SaveToDashboard.tsx +++ b/frontend/src/app/components/SaveToDashboard.tsx @@ -25,6 +25,7 @@ import { getCascadeAccess } from 'app/pages/MainPage/Access'; import { PermissionLevels, ResourceTypes, + VizResourceSubTypes, } from 'app/pages/MainPage/pages/PermissionPage/constants'; import { useAddViz } from 'app/pages/MainPage/pages/VizPage/hooks/useAddViz'; import { SaveFormContext } from 'app/pages/MainPage/pages/VizPage/SaveFormContext'; @@ -136,7 +137,7 @@ const SaveToDashboard: FC = memo( selectable: v.relType !== 'FOLDER', })), null, - [], + [VizResourceSubTypes.Folder], { getIcon, filter: filterTreeNode }, ); }, [vizData, getIcon, filterTreeNode]);