Skip to content

Commit

Permalink
fix: FragmentClassifier.byPredefineType returns a set of strings (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
HoyosJuan authored Jan 16, 2024
1 parent 91d69a9 commit b836e28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/openbim-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -104403,7 +104403,7 @@ class FragmentClassifier extends Component {
currentType[fragmentID] = new Set();
}
const currentFragment = currentType[fragmentID];
currentFragment.add(entity.expressID);
currentFragment.add(String(entity.expressID));
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/fragments/FragmentClassifier/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { FragmentManager } from "../FragmentManager";

export interface Classification {
[system: string]: {
[className: string]: { [fragmentID: string]: Set<string> };
[className: string]: FragmentIdMap;
};
}

Expand Down Expand Up @@ -201,7 +201,7 @@ export class FragmentClassifier
currentType[fragmentID] = new Set<string>();
}
const currentFragment = currentType[fragmentID];
currentFragment.add(entity.expressID);
currentFragment.add(String(entity.expressID));
}
}
}
Expand Down

0 comments on commit b836e28

Please sign in to comment.