mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-23 00:00:33 +00:00
fix: fix vscode extension dev mode with flows
This commit is contained in:
@@ -124,8 +124,12 @@
|
||||
}
|
||||
|
||||
async function loadUser() {
|
||||
const user = await getUserExt(workspace!)
|
||||
$userStore = user
|
||||
try {
|
||||
const user = await getUserExt(workspace!)
|
||||
$userStore = user
|
||||
} catch (e) {
|
||||
sendUserToast(`Failed to load user ${e}`, true)
|
||||
}
|
||||
}
|
||||
|
||||
let darkModeToggle: DarkModeToggle
|
||||
@@ -440,7 +444,7 @@
|
||||
testStepStore,
|
||||
saveDraft: () => {},
|
||||
initialPath: '',
|
||||
flowInputsStore: writable<FlowInput | undefined>(undefined)
|
||||
flowInputsStore: writable<FlowInput>({})
|
||||
})
|
||||
|
||||
$: updateFlow($flowStore)
|
||||
|
||||
@@ -396,7 +396,7 @@
|
||||
testStepStore,
|
||||
saveDraft,
|
||||
initialPath,
|
||||
flowInputsStore: writable<FlowInput | undefined>({})
|
||||
flowInputsStore: writable<FlowInput>({})
|
||||
})
|
||||
|
||||
async function loadSchedule() {
|
||||
|
||||
@@ -32,5 +32,5 @@ export type FlowEditorContext = {
|
||||
testStepStore: Writable<Record<string, any>>
|
||||
saveDraft: () => void
|
||||
initialPath: string
|
||||
flowInputsStore: Writable<FlowInput | undefined>
|
||||
flowInputsStore: Writable<FlowInput>
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
testStepStore,
|
||||
saveDraft: () => {},
|
||||
initialPath: '',
|
||||
flowInputsStore: writable<FlowInput | undefined>(undefined)
|
||||
flowInputsStore: writable<FlowInput>({})
|
||||
})
|
||||
|
||||
type LastEdit = {
|
||||
|
||||
Reference in New Issue
Block a user