refactor(editor): Fix TypeScript issues in views (no-changelog) (#9573)

This commit is contained in:
Elias Meire
2024-05-31 15:52:00 +02:00
committed by GitHub
parent 327794127e
commit e23420d89d
15 changed files with 89 additions and 70 deletions

View File

@@ -212,7 +212,7 @@ export const useUIStore = defineStore(STORES.UI, {
const settingsStore = useSettingsStore();
const deploymentType = settingsStore.deploymentType;
let contextKey = '';
let contextKey: '' | '.cloud' | '.desktop' = '';
if (deploymentType === 'cloud') {
contextKey = '.cloud';
} else if (deploymentType === 'desktop_mac' || deploymentType === 'desktop_win') {
@@ -266,7 +266,7 @@ export const useUIStore = defineStore(STORES.UI, {
},
},
},
};
} as const;
},
getLastSelectedNode(): INodeUi | null {
const workflowsStore = useWorkflowsStore();