1. Avoid PCRUD queries where the selected id value is set to null.
2. Avoid attempts to add null entries to the async entry cache.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
if (id === undefined) { return; }
// clear on explicit null
- if (id === null) { this.selected = null; }
+ if (id === null) {
+ this.selected = null;
+ return;
+ }
if (this.entrylist.length) {
this.selected = this.entrylist.filter(e => e.id === id)[0];
}
addAsyncEntry(entry: ComboboxEntry) {
+ if (!entry) { return; }
// Avoid duplicate async entries
if (!this.asyncIds['' + entry.id]) {
this.asyncIds['' + entry.id] = true;