Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
fix: fix bundle unbundled logic (segmentio#521)
Browse files Browse the repository at this point in the history
Co-authored-by: Alan Charles <alancharles@Alans-MacBook-Pro-2.local>
  • Loading branch information
alanjcharles and Alan Charles authored Apr 29, 2022
1 parent a70a9e6 commit 9e080b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/plugins/DestinationMetadataEnrichment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class DestinationMetadataEnrichment extends UtilityPlugin {
continue;
}

if (key in pluginSettings) {
if (Object.keys(pluginSettings).includes(key)) {
bundled.push(key);
}
}
Expand All @@ -41,7 +41,7 @@ export class DestinationMetadataEnrichment extends UtilityPlugin {
segmentInfo.unbundledIntegrations ?? [];

for (const integration of unbundledIntegrations) {
if (!(integration in bundled)) {
if (!bundled.includes(integration)) {
unbundled.push(integration);
}
}
Expand Down

0 comments on commit 9e080b1

Please sign in to comment.