mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 00:03:08 +00:00
do a shallow copy on rx connect to allow for function passing
This commit is contained in:
@@ -27,8 +27,6 @@
|
||||
result: null as [number, number] | null
|
||||
})
|
||||
|
||||
console.log('reset')
|
||||
|
||||
$: outputs?.result.set(values)
|
||||
|
||||
$: css = concatCustomCss($app.css?.rangecomponent, customCss)
|
||||
|
||||
@@ -169,7 +169,7 @@ export function settableOutput<T>(state: Writable<number>, previousValue: T): Ou
|
||||
state.update((x) => x + 1)
|
||||
|
||||
if (typeof x === 'object') {
|
||||
value = JSON.parse(JSON.stringify(x))
|
||||
value = Object.assign({}, x)
|
||||
} else {
|
||||
value = x
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user