Skip to content

Commit

Permalink
remove remotePlugins check
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Apr 16, 2024
1 parent 235ea37 commit 25e4a21
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const assertIntegrationsContainOnly = (
updatedCDNSettings: CDNSettings
) => {
expect(updatedCDNSettings.remotePlugins).toEqual(
originalCDNSettings.remotePlugins?.filter((p) =>
originalCDNSettings.remotePlugins.filter((p) =>
// enabled consent
creationNames.includes(p.creationName)
)
Expand Down
4 changes: 0 additions & 4 deletions packages/consent/consent-tools/src/domain/create-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ export const createWrapper = <Analytics extends AnyAnalytics>(
analyticsService.load(settings, {
...options,
updateCDNSettings: pipe((cdnSettings) => {
if (!cdnSettings.remotePlugins) {
return cdnSettings
}

return filterDeviceModeDestinationsForOptIn(
cdnSettings,
initialCategories,
Expand Down
2 changes: 1 addition & 1 deletion packages/consent/consent-tools/src/types/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export interface CDNSettingsConsent {

export interface CDNSettings {
integrations: CDNSettingsIntegrations
remotePlugins?: CDNSettingsRemotePlugin[]
remotePlugins: CDNSettingsRemotePlugin[]
consentSettings?: CDNSettingsConsent
}

Expand Down

0 comments on commit 25e4a21

Please sign in to comment.