fix: add extra check

pull/15579/head
paoloricciuti 6 months ago
parent 128c3254db
commit 3e886c71f0

@ -240,7 +240,7 @@ export function internal_set(source, value) {
if (!source.equals(value)) {
var old_value = source.v;
if (old_value != null && source.o?.onchange) {
if (typeof old_value === 'object' && old_value != null && source.o?.onchange) {
// @ts-ignore
const remove = old_value[PROXY_ONCHANGE_SYMBOL];
if (remove && typeof remove === 'function') {

Loading…
Cancel
Save