Skip to content

[Consent-Tools] - RemotePlugins not filtered when using 'opt-in' #1326

@willstaff

Description

@willstaff

While using the opt-in domain model integrations are filtered correctly but remotePlugins are not. A brief look into the code looks like we are filtering on the original array, rather than the copy so only the last filter will take effect. I could raise a PR for this

Code in question:

cdnSettingsCopy.remotePlugins = remotePlugins?.filter( (p) => p.creationName !== creationName)

should be something like:

cdnSettingsCopy.remotePlugins = cdnSettingsCopy.remotePlugins?.filter( (p) => p.creationName !== creationName)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions