Changeset 33149 for main

Show
Ignore:
Timestamp:
14.06.2019 20:24:43 (4 months ago)
Author:
wy59
Message:

Bugfix to dealing with any undefined label values for map editor shapes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/map-scripts-editor.js

    r33102 r33149  
    186186MapEditor.prototype.addToAutocompleteLabelsList = function (newLabel) { 
    187187 
     188    if(typeof(newLabel) === 'undefined') { return; } 
     189 
    188190    // We use a hashmap to more efficiently ensure uniqueness of labels in our array 
    189191    // https://stackoverflow.com/questions/11040472/how-to-check-if-object-property-exists-with-a-variable-holding-the-property-name