Skip to content

Commit 2ebb3bc

Browse files
committed
fix: addForEnvironment should respect replace when using array input
1 parent f748f61 commit 2ebb3bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app-config-encryption/src/encryption.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ function addForEnvironment<T>(
756756
};
757757

758758
if (Array.isArray(values)) {
759-
return values.concat(add);
759+
return addOrReplace(values);
760760
}
761761

762762
const environment = currentEnvironment(environmentOptions);

0 commit comments

Comments
 (0)