X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Flogging%2Fsrc%2FloggingStore.js;h=6743b92c5b52a6e392bee3de5424abd7ad3c2904;hb=b834de6baefd489b1032aef5f0930dbb8eee3a1a;hp=d8f0d70a6daf5464df6285a43f86739c4f2a3002;hpb=58b264f094f5351c5662a6d5640e65ea890c14f4;p=osm%2FUI.git diff --git a/skyquake/plugins/logging/src/loggingStore.js b/skyquake/plugins/logging/src/loggingStore.js index d8f0d70a6..6743b92c5 100644 --- a/skyquake/plugins/logging/src/loggingStore.js +++ b/skyquake/plugins/logging/src/loggingStore.js @@ -1,5 +1,5 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -126,14 +126,18 @@ class LoggingStore { // TODO/NOTE: Can't delete from model as sending a top-level payload with // missing elements is not allowed! // When backend supports it, in loggingSource change the order of operations - // Delete first followed by save/put. - // _.remove(loggingConfig.sinks[sinkIndex].filter.category, { - // name: catsev.name - // }); + // // Delete first followed by save/put. + _.remove(loggingConfig.sinks[sinkIndex].filter.category, { + name: catsev.name + }); } else { sink.filter.category[catIndex] = catsev; } } else { + _.remove(nulledCategories, (v) => v == catsev.name); + this.setState({ + nulledCategories: nulledCategories + }); sink.filter.category.push(catsev); } } else {