Fix soapbox config page crash
This commit is contained in:
parent
27ba796852
commit
d14cad38af
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ type SoapboxConfigMap = ImmutableMap<string, any>;
|
|||
|
||||
const normalizeAds = (soapboxConfig: SoapboxConfigMap): SoapboxConfigMap => {
|
||||
if (soapboxConfig.has('ads')) {
|
||||
const ads = filteredArray(adSchema).parse(soapboxConfig.get('ads').toJS());
|
||||
const ads = filteredArray(adSchema).parse(ImmutableList(soapboxConfig.get('ads')).toJS());
|
||||
return soapboxConfig.set('ads', ads);
|
||||
} else {
|
||||
return soapboxConfig;
|
||||
|
|
Loading…
Reference in a new issue