From 6a5c22faaa1e59fe1286e4b6a038711181b251f8 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 13 Sep 2022 14:17:54 -0500 Subject: [PATCH] SoapboxConfig: fix being unable to add streamfield items when the list is empty --- app/soapbox/features/soapbox_config/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/soapbox_config/index.tsx b/app/soapbox/features/soapbox_config/index.tsx index 24ad615a32..fd339cf5cf 100644 --- a/app/soapbox/features/soapbox_config/index.tsx +++ b/app/soapbox/features/soapbox_config/index.tsx @@ -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)); }; };