mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 08:02:26 +00:00
fix refreshFlow loop
This commit is contained in:
+3
-3
@@ -69,9 +69,9 @@
|
||||
async function refreshFlow(x: RunnableByPath) {
|
||||
if (componentInput?.type == 'runnable') {
|
||||
const schema = (await loadSchema($workspaceStore ?? '', x.path, 'flow')) ?? emptySchema()
|
||||
x.schema = schema
|
||||
const nfields = computeFields(schema, false, componentInput.fields)
|
||||
if (!deepEqual(componentInput.fields, nfields)) {
|
||||
if (!deepEqual(x.schema, schema)) {
|
||||
x.schema = schema
|
||||
const nfields = computeFields(schema, false, componentInput.fields)
|
||||
componentInput.fields = nfields
|
||||
componentInput = componentInput
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user