From e14ab90551a1b17e05fcc324de9dfe4a561ee4d7 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Wed, 24 Nov 2021 01:25:24 +0100 Subject: [PATCH] Fix Cloze button (#1504) --- ts/editor/destroyable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/editor/destroyable.ts b/ts/editor/destroyable.ts index 19aa8c15a..60399d220 100644 --- a/ts/editor/destroyable.ts +++ b/ts/editor/destroyable.ts @@ -10,7 +10,7 @@ export function clearableArray(): (T & Destroyable)[] { return new Proxy(list, { get: function (target: (T & Destroyable)[], prop: string | symbol) { - if (!isNaN(Number(prop)) && !target[prop]) { + if (!(typeof prop === "symbol") && !isNaN(Number(prop)) && !target[prop]) { const item = {} as T & Destroyable; const destroy = (): void => {