Skip to content

Commit 8d31240

Browse files
ChauChau
Chau
authored and
Chau
committedApr 2, 2025
chore(core): clean up
1 parent b1d2e4b commit 8d31240

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed
 

‎libs/core/src/lib/directives/selection.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ export class NgtSelect {
3131
if (!enabled) return;
3232

3333
const host = elementRef.nativeElement;
34-
if (!host) return;
35-
3634
const localState = getInstanceState(host);
3735
if (!localState) return;
3836

‎libs/core/src/lib/utils/apply-props.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@ export function applyProps<T extends NgtAnyRecord>(instance: NgtInstanceState<T>
170170
}
171171

172172
// clearing the intermediate store from the instance
173-
if (instance[NGT_APPLY_PROPS]) {
174-
delete instance[NGT_APPLY_PROPS];
175-
}
173+
if (instance[NGT_APPLY_PROPS]) delete instance[NGT_APPLY_PROPS];
176174

177175
return instance;
178176
}

0 commit comments

Comments
 (0)