fix: [workflow:editor] Correctly purge nodes saved_filter

pull/8568/head
Sami Mokaddem 2022-08-24 09:50:15 +02:00
parent f1678cd74c
commit cc6166089d
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 0 deletions

View File

@ -1598,6 +1598,9 @@ function saveFilteringForModule() {
$('<div></div>').addClass('alert alert-danger').text('Some fields cannot be empty')
)
} else {
if (selector.length == 0 && value.length == 0 && path.length == 0) {
operator = ''
}
var node_id = $blockFilteringModal.data('selected-node-id')
var block = $blockFilteringModal.data('selected-block')
block.saved_filters = {