SoapboxConfig: fix being unable to add streamfield items when the list is empty

This commit is contained in:
Alex Gleason
2022-09-13 14:17:54 -05:00
parent 91ea288b1c
commit 6a5c22faaa

View File

@ -155,7 +155,7 @@ const SoapboxConfig: React.FC = () => {
const addStreamItem = (path: ConfigPath, template: Template) => {
return () => {
const items = data.getIn(path);
const items = data.getIn(path) || ImmutableList();
setConfig(path, items.push(template));
};
};