do a shallow copy on rx connect to allow for function passing

This commit is contained in:
Ruben Fiszel
2023-05-28 13:04:52 +02:00
parent e91571a58b
commit 1cb3686e8d
2 changed files with 1 additions and 3 deletions
@@ -27,8 +27,6 @@
result: null as [number, number] | null
})
console.log('reset')
$: outputs?.result.set(values)
$: css = concatCustomCss($app.css?.rangecomponent, customCss)
+1 -1
View File
@@ -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
}