Fix Cloze button (#1504)

This commit is contained in:
Henrik Giesel 2021-11-24 01:25:24 +01:00 committed by GitHub
parent 675155e025
commit 4886f5772d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ export function clearableArray<T>(): (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 => {