mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 08:01:35 +00:00
fix: fix add resource with keys as objects
This commit is contained in:
@@ -215,10 +215,14 @@
|
||||
(o) => nativeLanguagesCategory?.includes(o[0]) ?? false
|
||||
)
|
||||
|
||||
filteredConnectsManual = [
|
||||
...(filteredNativeLanguages ?? []),
|
||||
...(filteredConnectsManual ?? []).filter(([key, _]) => !nativeLanguagesCategory.includes(key))
|
||||
]
|
||||
try {
|
||||
filteredConnectsManual = [
|
||||
...(filteredNativeLanguages ?? []),
|
||||
...(filteredConnectsManual ?? []).filter(
|
||||
([key, _]) => !nativeLanguagesCategory.includes(key)
|
||||
)
|
||||
]
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
async function next() {
|
||||
@@ -274,9 +278,11 @@
|
||||
|
||||
const resourceValue = args
|
||||
|
||||
let saveVariable = false
|
||||
if (!manual || linkedSecret != undefined) {
|
||||
let v = manual ? args[linkedSecret ?? ''] : value
|
||||
if (!v.startsWith('$var:')) {
|
||||
if (typeof v == 'string' && v != '' && !v.startsWith('$var:')) {
|
||||
saveVariable = true
|
||||
await VariableService.createVariable({
|
||||
workspace: $workspaceStore!,
|
||||
requestBody: {
|
||||
@@ -304,7 +310,7 @@
|
||||
}
|
||||
})
|
||||
dispatch('refresh', path)
|
||||
sendUserToast(`App token set at resource and variable path: ${path}`)
|
||||
sendUserToast(`Saved resource${saveVariable ? ' and variable' : ''} path: ${path}`)
|
||||
drawer.closeDrawer?.()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user