Skip to content

Commit c481635

Browse files
committed
fix(zotero-picker): catch request errors
1 parent 22d7aa4 commit c481635

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/zotero-picker.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,11 @@ export class ZoteroPicker extends HTMLElement {
111111
data.push(item);
112112
}
113113
});
114-
console.log(data);
115114
callback(data);
116-
});
115+
})
116+
.catch(()=>{
117+
callback();
118+
});
117119
},
118120
placeholder: 'Zotero search',
119121
valueField: 'tag',

0 commit comments

Comments
 (0)