|
13 | 13 | // limitations under the License. |
14 | 14 | --> |
15 | 15 | <script lang="ts"> |
| 16 | + import { FavoriteType, MasterTag } from '@hcengineering/card' |
16 | 17 | import core, { Class, Doc, getCurrentAccount, Ref } from '@hcengineering/core' |
| 18 | + import preference from '@hcengineering/preference' |
17 | 19 | 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' |
22 | 21 | 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' |
25 | 24 | import card from '../../plugin' |
| 25 | + import TagHierarchy from './TagHierarchy.svelte' |
26 | 26 |
|
27 | 27 | export let model: GroupsNavModel |
28 | 28 |
|
|
73 | 73 | function selectType (type: Ref<MasterTag>): void { |
74 | 74 | const loc = getCurrentLocation() |
75 | 75 | loc.path = buildTypePath(loc.path, type) |
| 76 | + setFilters([]) |
76 | 77 | navigate(loc) |
77 | 78 | } |
78 | 79 |
|
|
0 commit comments