Skip to content

Commit

Permalink
chore: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Feb 4, 2025
1 parent a75ff69 commit def36ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/tree-v1/tree-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class TreeStore {
public setConfig(options: TypeTreeStoreOptions) {
const { config } = this;
let hasChanged = false;
(Object.keys(options) as (keyof TypeTreeStoreOptions)[]).forEach((key) => {
(Object.keys(options)).forEach((key: keyof TypeTreeStoreOptions) => {
const val = options[key];
if (val !== config[key]) {
hasChanged = true;
Expand Down
2 changes: 1 addition & 1 deletion js/tree/tree-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class TreeStore {
public setConfig(options: TypeTreeStoreOptions) {
const { config } = this;
let hasChanged = false;
(Object.keys(options) as (keyof TypeTreeStoreOptions)[]).forEach((key) => {
(Object.keys(options)).forEach((key: keyof TypeTreeStoreOptions) => {
const val = options[key];
if (val !== config[key]) {
hasChanged = true;
Expand Down

0 comments on commit def36ad

Please sign in to comment.