diff --git a/packages/states/src/proxy.svelte.js b/packages/states/src/proxy.svelte.js index 7fba6ea99..4a3e2e1b2 100644 --- a/packages/states/src/proxy.svelte.js +++ b/packages/states/src/proxy.svelte.js @@ -13,7 +13,7 @@ export class Proxy { this.fields = fields this.#original = value this.#value = typeof value === 'object' ? value : { [this.fields.text]: value } - this.id = typeof value === 'object' ? (this.get('id') ?? id()) : value + this.id = typeof value === 'object' ? this.get('id') ?? id() : value } #processChildren() {