Skip to content

Commit 8e3a4be

Browse files
Correct error
1 parent c51914a commit 8e3a4be

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

multilingualprogramming/codegen/ui_lowering.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,15 @@ class ReactiveSignal {
252252
handler(value);
253253
}
254254
}
255+
setIndex(index, value) {
256+
if (this._value == null || typeof this._value !== 'object') {
257+
this._value = {};
258+
}
259+
this._value[index] = value;
260+
for (const handler of this._handlers) {
261+
handler(this._value);
262+
}
263+
}
255264
on_change(handler) {
256265
this._handlers.push(handler);
257266
}

0 commit comments

Comments
 (0)