There was an error while loading. Please reload this page.
1 parent 63d80d6 commit 1bff567Copy full SHA for 1bff567
1 file changed
packages/plugins/rum/src/built/privacy-helpers.ts
@@ -18,15 +18,17 @@ export function $(newValues: string[] | TemplateStringsArray) {
18
return newValues;
19
}
20
21
- newValues.forEach((value) => {
22
- if (Array.isArray(value)) {
23
- value.forEach((raw) => {
24
- globalAny.$DD_ALLOW.add(raw);
25
- });
26
- } else {
+ newValues
+ .flatMap((value) => {
+ if (Array.isArray(value)) {
+ return value;
+ }
27
+ })
28
+ .forEach((value) => {
29
globalAny.$DD_ALLOW.add(value);
- }
30
+ });
31
+
32
if (globalAny.$DD_ALLOW.size !== initialSize) {
33
if (globalAny.$DD_ALLOW_OBSERVERS) {
34
globalAny.$DD_ALLOW_OBSERVERS.forEach((cb: () => void) => cb());
0 commit comments