Skip to content

Commit 3115bfb

Browse files
committed
fix: add change per array element
1 parent 0127578 commit 3115bfb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

client/src/addon_manager/services/settings.service.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ export const applyAddonSettings = async (
3838
const changes = [];
3939
for (const [newKey, newValue] of Object.entries(config)) {
4040
if (Array.isArray(newValue)) {
41-
changes.push({
42-
action: "add",
43-
key: newKey,
44-
value: newValue,
45-
uri: folder.uri,
41+
newValue.forEach((val) => {
42+
changes.push({
43+
action: "add",
44+
key: newKey,
45+
value: val,
46+
uri: folder.uri,
47+
});
4648
});
4749
} else if (typeof newValue === "object") {
4850
changes.push(

0 commit comments

Comments
 (0)