diff --git a/ui/src/editor-core/toolbar.js b/ui/src/editor-core/toolbar.js index e929846909..88be6eaa1b 100644 --- a/ui/src/editor-core/toolbar.js +++ b/ui/src/editor-core/toolbar.js @@ -1735,7 +1735,8 @@ Toolbar.prototype.mediaContentPopulate = function(menu) { if ( (!res.data || res.data.length == 0) && - $mediaContent.find('.toolbar-card').length == 0 + $mediaContent.find('.toolbar-card:not(.toolbar-card-special)') + .length == 0 ) { // Handle card behaviour self.handleCardsBehaviour(); @@ -2443,7 +2444,9 @@ Toolbar.prototype.layoutTemplatesContentPopulate = function(menu) { } else if (response.login) { window.location.href = window.location.href; location.reload(); - } else if ($content.find('.toolbar-card').length === 0) { + } else if ( + $content.find('.toolbar-card:not(.toolbar-card-special)').length === 0 + ) { $searchForm.append( '