Skip to content

Commit 9e080b1

Browse files
alanjcharlesAlan Charles
andauthored
fix: fix bundle unbundled logic (#521)
Co-authored-by: Alan Charles <alancharles@Alans-MacBook-Pro-2.local>
1 parent a70a9e6 commit 9e080b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/plugins/DestinationMetadataEnrichment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class DestinationMetadataEnrichment extends UtilityPlugin {
2929
continue;
3030
}
3131

32-
if (key in pluginSettings) {
32+
if (Object.keys(pluginSettings).includes(key)) {
3333
bundled.push(key);
3434
}
3535
}
@@ -41,7 +41,7 @@ export class DestinationMetadataEnrichment extends UtilityPlugin {
4141
segmentInfo.unbundledIntegrations ?? [];
4242

4343
for (const integration of unbundledIntegrations) {
44-
if (!(integration in bundled)) {
44+
if (!bundled.includes(integration)) {
4545
unbundled.push(integration);
4646
}
4747
}

0 commit comments

Comments
 (0)