Skip to content

Commit 829e8fc

Browse files
committed
2927: Fixed single
1 parent b10f6d4 commit 829e8fc

File tree

2 files changed

+137
-127
lines changed

2 files changed

+137
-127
lines changed

src/components/slide/content/feed-selector.jsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,19 @@ function FeedSelector({
9797
onChange(newValue);
9898
};
9999

100-
const configurationChange = ({ target }) => {
100+
const configurationChange = ({ target = null, targets = null }) => {
101101
const configuration = { ...value.configuration };
102-
set(configuration, target.id, target.value);
102+
103+
if (target !== null) {
104+
set(configuration, target.id, target.value);
105+
}
106+
107+
if (targets !== null) {
108+
for (let i = 0; i < targets.length; i = i + 1) {
109+
set(configuration, targets[i].id, targets[i].value);
110+
}
111+
}
112+
103113
const newValue = { ...value, configuration };
104114
onChange(newValue);
105115
};

0 commit comments

Comments
 (0)