Merge branch 'soapbox-streamfield-fix' into 'develop'

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

Closes #1085

See merge request soapbox-pub/soapbox!1791
This commit is contained in:
Alex Gleason 2022-09-13 21:19:46 +00:00
commit dde9188afb

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));
};
};