mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Fix Cloze button (#1504)
This commit is contained in:
parent
675155e025
commit
4886f5772d
1 changed files with 1 additions and 1 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue