Use t.if instead of t.map

This commit is contained in:
RMidhunSuresh 2022-05-11 12:46:12 +05:30
parent 855298bdaf
commit 213f87378b

View file

@ -97,7 +97,7 @@ export class SettingsView extends TemplateView {
settingNodes.push(
t.h3("Preferences"),
row(t, vm.i18n`Scale down images when sending`, this._imageCompressionRange(t, vm)),
t.map(vm => vm.activeTheme, (theme, t) => {
t.if(vm => vm.activeTheme, (theme, t) => {
return !import.meta.env.DEV? row(t, vm.i18n`Use the following theme`, this._themeOptions(t, vm, theme)): null;
}),
);