From 4886f5772d10152b4cb5147dd9ccd7c7907dfe17 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 => {