From 543d1de570064298acf9bd6bc6018d848ab2fb30 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Tue, 2 Jul 2024 16:01:05 -0400 Subject: [PATCH] inline var --- src/plugins/customFolderIcons/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/customFolderIcons/index.tsx b/src/plugins/customFolderIcons/index.tsx index ba5494020..1ef6dfccb 100644 --- a/src/plugins/customFolderIcons/index.tsx +++ b/src/plugins/customFolderIcons/index.tsx @@ -37,8 +37,7 @@ export default definePlugin({ } }, shouldReplace(props: any): boolean{ - const folderSettings = (settings.store.folderIcons as folderIconsData); - return !!(folderSettings?.[props.folderNode.id]?.url); + return !!((settings.store.folderIcons as folderIconsData)?.[props.folderNode.id]?.url); }, replace(props: any){ const folderSettings = (settings.store.folderIcons as folderIconsData);