File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
projects/terminology-treeview Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.1" ,
4
4
"private" : true ,
5
5
"peerDependencies" : {
6
- "@angular/common" : " ^14.2 .0" ,
7
- "@angular/core" : " ^14.2 .0" ,
6
+ "@angular/common" : " ^14.0 .0" ,
7
+ "@angular/core" : " ^14.0 .0" ,
8
8
"lodash" : " ^4.0.0"
9
9
},
10
10
"dependencies" : {
Original file line number Diff line number Diff line change @@ -337,7 +337,9 @@ export class TerminologyTreeFilterComponent
337
337
}
338
338
339
339
onEdutrItemClicked ( item : TerminologyTreeviewItem | any ) {
340
- this . selected . push ( item ) ;
340
+ if ( ! this . selected ?. find ( i => item . id === i . id ) ) {
341
+ this . selected . push ( item ) ;
342
+ }
341
343
this . emitSelection ( ) ;
342
344
}
343
345
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import {
24
24
import { TerminologyTreeFilterComponent } from './terminology-tree-filter/terminology-tree-filter.component' ;
25
25
import { NewSelectModule } from '@orbis-u/components/new-select' ;
26
26
import { CheckboxModule } from '@orbis-u/components/checkbox' ;
27
+ import { CommonModule } from '@angular/common' ;
27
28
28
29
@NgModule ( {
29
30
declarations : [
@@ -35,8 +36,8 @@ import { CheckboxModule } from '@orbis-u/components/checkbox';
35
36
imports : [
36
37
AutomationIdModule ,
37
38
BadgeModule ,
38
- BrowserAnimationsModule ,
39
39
ButtonModule ,
40
+ CommonModule ,
40
41
CdkModule ,
41
42
CheckboxModule ,
42
43
DropdownModule ,
Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ import { ToolbarModule } from '@orbis-u/components/toolbar';
15
15
import { CdkModule } from '@orbis-u/common/cdk' ;
16
16
import { UThemeModule } from '@orbis-u/styles' ;
17
17
import { ToggleSwitchModule } from '@orbis-u/components/toggle-switch' ;
18
+ import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ;
18
19
19
20
@NgModule ( {
20
21
imports : [
21
22
BrowserModule ,
23
+ BrowserAnimationsModule ,
22
24
FormsModule ,
23
25
HttpClientModule ,
24
26
CdkModule ,
You can’t perform that action at this time.
0 commit comments