Fix issues with Wikidata field

This commit is contained in:
Quincy Morgan
2020-09-24 10:27:35 -04:00
parent 9bde5b967c
commit 482d0902ac
2 changed files with 8 additions and 2 deletions
+4 -2
View File
@@ -84,8 +84,10 @@ export function uiFieldWikidata(field, context) {
.call(combobox.fetcher(fetchWikidataItems));
combobox.on('accept', function(d) {
_qid = d.id;
change();
if (d) {
_qid = d.id;
change();
}
}).on('cancel', function() {
setLabelForEntity();
});