fix(editor): fix node creator search when there's active subcategory (#4494)

* fix(editor): fix node creator search when there's active subcategory

* 🎨 Add intersection util and replace lodash one with it

* 🎨 Remove unused imports
This commit is contained in:
OlegIvaniv
2022-11-01 17:11:31 +01:00
committed by GitHub
parent d1d1288ba9
commit f24497589f
3 changed files with 25 additions and 5 deletions

View File

@@ -8,7 +8,7 @@
:initialActiveIndex="0"
:searchItems="searchItems"
:firstLevelItems="isRoot ? items : []"
:excludedCategories="[CORE_NODES_CATEGORY]"
:excludedCategories="isRoot ? [] : [CORE_NODES_CATEGORY]"
:initialActiveCategories="[COMMUNICATION_CATEGORY]"
>
<template #header>
@@ -53,7 +53,7 @@ export default mixins(externalHooks).extend({
computed: {
items() {
return [{
key: "core_nodes",
key: "*",
type: "subcategory",
title: this.$locale.baseText('nodeCreator.subcategoryNames.appTriggerNodes'),
properties: {