[gnome-maps] placeStore: Fix the exists method



commit 80ddfa77d66e0a66d303061ea1278adcab24ca0f
Author: Marcus Lundblad <ml update uu se>
Date:   Sun Nov 12 21:35:54 2017 +0100

    placeStore: Fix the exists method
    
    A condition was broken here resulting in adding favorites
    not working.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782861

 src/placeStore.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/placeStore.js b/src/placeStore.js
index 0ef95c6..9650b47 100644
--- a/src/placeStore.js
+++ b/src/placeStore.js
@@ -305,7 +305,7 @@ var PlaceStore = new Lang.Class({
     },
 
     exists: function(place, type) {
-        if (type !== undefined && type !== null && this._typeTable[place.uniqueID])
+        if (type !== undefined && type !== null && this._typeTable[place.uniqueID] !== undefined)
             return this._typeTable[place.uniqueID] === type;
         else
             return this._typeTable[place.uniqueID] !== undefined;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]