Signed-off-by: Jason Etheridge <phasefx@gmail.com>
.subscribe( newText => {
this.saveFilterName = newText;
this.nameCollision = false;
- this.store.getItem('eg.grid.filters.' + this.gridContext.persistKey).then( setting => {
- if (setting) {
- if (setting[newText]) {
- this.nameCollision = true;
+ if (newText !== '') {
+ this.store.getItem('eg.grid.filters.' + this.gridContext.persistKey).then( setting => {
+ if (setting) {
+ if (setting[newText]) {
+ this.nameCollision = true;
+ }
}
- }
- });
+ });
+ }
})
);