Skip to content

Commit

Permalink
remove isAvailableOnCurrentLane if is true before writing to the .bit…
Browse files Browse the repository at this point in the history
…map file (#7731)
  • Loading branch information
davidfirst authored Aug 2, 2023
1 parent c7a4247 commit 5e8c961
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/consumer/bit-map/bit-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,9 @@ export default class BitMap {
// if not exist, we still need these properties so we know later to parse them correctly.
componentMapCloned.scope = componentMapCloned.id.hasScope() ? componentMapCloned.id.scope : '';
componentMapCloned.version = componentMapCloned.id.hasVersion() ? componentMapCloned.id.version : '';
if (componentMapCloned.isAvailableOnCurrentLane && !componentMapCloned.onLanesOnly) {
delete componentMapCloned.isAvailableOnCurrentLane;
}
idStr = componentMapCloned.id.name;
// @ts-ignore
delete componentMapCloned?.id;
Expand Down

0 comments on commit 5e8c961

Please sign in to comment.