From 1b11dca467cf6d72e8f8ff55e64377fcaef50e02 Mon Sep 17 00:00:00 2001 From: Weixuan Fu Date: Mon, 4 Mar 2024 23:25:10 +0800 Subject: [PATCH] cleanup code --- ui/src/utils/twowaySyncUtils.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ui/src/utils/twowaySyncUtils.ts b/ui/src/utils/twowaySyncUtils.ts index 5a03d2e..21e3155 100644 --- a/ui/src/utils/twowaySyncUtils.ts +++ b/ui/src/utils/twowaySyncUtils.ts @@ -14,13 +14,7 @@ export async function scanMyWorkflowsDir( parentFolderID: string | null, sortBy?: ESortTypes, ): Promise<(Workflow | Folder)[]> { - const myWorkflowsDir = await userSettingsTable?.getSetting("myWorkflowsDir"); - if (myWorkflowsDir == null || myWorkflowsDir === "") { - alert("No Workspace saving directory found, please go to Settings."); - return []; - } const parentRelPath = sanitizeRelPath(parentFolderID ?? ""); - console.log("scanMyWorkflowsDir", parentRelPath); // folderID is the relative path of the folder in two way sync mode const fileList = await scanLocalFiles(parentRelPath);