forked from mystiq/hydrogen-web
Use t.if instead of t.map
This commit is contained in:
parent
855298bdaf
commit
213f87378b
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ export class SettingsView extends TemplateView {
|
||||||
settingNodes.push(
|
settingNodes.push(
|
||||||
t.h3("Preferences"),
|
t.h3("Preferences"),
|
||||||
row(t, vm.i18n`Scale down images when sending`, this._imageCompressionRange(t, vm)),
|
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;
|
return !import.meta.env.DEV? row(t, vm.i18n`Use the following theme`, this._themeOptions(t, vm, theme)): null;
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue