Don't crash when item isn't found.
This commit is contained in:
parent
9a841921f4
commit
caed12c325
|
@ -1305,6 +1305,10 @@ export default {
|
||||||
this.close_edit_list();
|
this.close_edit_list();
|
||||||
|
|
||||||
var item = this.items[qid];
|
var item = this.items[qid];
|
||||||
|
if (item === undefined) {
|
||||||
|
this.close_item();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (marker) {
|
if (marker) {
|
||||||
this.selected_marker = marker;
|
this.selected_marker = marker;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue