LP#1844169: Compare query position against string
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / staff / admin / local / search-filter / query-dialog.component.ts
index f1d1776..534ef7a 100644 (file)
@@ -52,7 +52,7 @@ export class QueryDialogComponent extends DialogComponent implements OnInit {
     }
 
     save() {
-        if (!this.newQueryLabel || (!this.newQueryPosition && (this.newQueryPosition != 0)) || !this.newQueryText) {
+        if (!this.newQueryLabel || (!this.newQueryPosition && (this.newQueryPosition != '0')) || !this.newQueryText) {
             this.closeAndReset({notFilledOut: true});
         }
         const recToSave = this.prepareRecord();