X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flogging%2Fapi%2Ftransforms.js;h=f4bfda62efecb5d653150f01256596f037f25664;hp=5f65010209aae771d98fc99e28efbe3182ed0a5c;hb=be6c8fc67dd5928617d4883c7fc9d0b934a8ee0c;hpb=472709b4582d4c242aee39f537b9dab369e25918 diff --git a/skyquake/plugins/logging/api/transforms.js b/skyquake/plugins/logging/api/transforms.js index 5f6501020..f4bfda62e 100644 --- a/skyquake/plugins/logging/api/transforms.js +++ b/skyquake/plugins/logging/api/transforms.js @@ -168,7 +168,7 @@ LoggingConfigEncoder.prototype.denyEvents = function(data) { * or absence of the { "allow": { "duplicate": "events" }} key/value hierarchy */ LoggingConfigEncoder.prototype.allow = function(data) { - if (data.allowDuplicateEvents.toUpperCase() == "TRUE") { + if (data.allowDuplicateEvent && data.allowDuplicateEvents.toUpperCase() == "TRUE") { return { duplicate: "events" }; } else { return null;