Skip to content

Commit ec440bd

Browse files
BykhovDenisArtyomSavchenko
authored andcommitted
Clear filters for card (#10246)
Signed-off-by: Denis Bykhov <[email protected]>
1 parent 35228dd commit ec440bd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

plugins/card-resources/src/components/navigator/TypesNavigator.svelte

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
// limitations under the License.
1414
-->
1515
<script lang="ts">
16+
import { FavoriteType, MasterTag } from '@hcengineering/card'
1617
import core, { Class, Doc, getCurrentAccount, Ref } from '@hcengineering/core'
18+
import preference from '@hcengineering/preference'
1719
import { createQuery, getClient } from '@hcengineering/presentation'
18-
import { Action, getCurrentLocation, navigate, location as locationStore } from '@hcengineering/ui'
19-
import { MasterTag, FavoriteType } from '@hcengineering/card'
20-
import { TreeNode } from '@hcengineering/view-resources'
21-
import { GroupsNavModel } from '@hcengineering/workbench'
20+
import { Action, getCurrentLocation, location as locationStore, navigate } from '@hcengineering/ui'
2221
import view from '@hcengineering/view'
23-
import preference from '@hcengineering/preference'
24-
import TagHierarchy from './TagHierarchy.svelte'
22+
import { setFilters, TreeNode } from '@hcengineering/view-resources'
23+
import { GroupsNavModel } from '@hcengineering/workbench'
2524
import card from '../../plugin'
25+
import TagHierarchy from './TagHierarchy.svelte'
2626
2727
export let model: GroupsNavModel
2828
@@ -73,6 +73,7 @@
7373
function selectType (type: Ref<MasterTag>): void {
7474
const loc = getCurrentLocation()
7575
loc.path = buildTypePath(loc.path, type)
76+
setFilters([])
7677
navigate(loc)
7778
}
7879

0 commit comments

Comments
 (0)