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:
commit
dde9188afb
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue