Changeset 33149 for main


Ignore:
Timestamp:
2019-06-14T20:24:43+12:00 (5 years ago)
Author:
wy59
Message:

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

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.