kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
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!1791environments/review-develop-3zknud/deployments/970
commit
dde9188afb
|
@ -155,7 +155,7 @@ const SoapboxConfig: React.FC = () => {
|
||||||
|
|
||||||
const addStreamItem = (path: ConfigPath, template: Template) => {
|
const addStreamItem = (path: ConfigPath, template: Template) => {
|
||||||
return () => {
|
return () => {
|
||||||
const items = data.getIn(path);
|
const items = data.getIn(path) || ImmutableList();
|
||||||
setConfig(path, items.push(template));
|
setConfig(path, items.push(template));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Ładowanie…
Reference in New Issue