From 96fa6eac449724fdbd72a9382bc80d6544434098 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 31 Jan 2026 17:07:32 +0200 Subject: [PATCH] fix(mobile/tab_switcher): no title if empty tab --- apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx b/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx index 4ce8ed4bf..edbe10bbe 100644 --- a/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx +++ b/apps/client/src/widgets/mobile_widgets/TabSwitcher.tsx @@ -6,6 +6,7 @@ import { useEffect, useState } from "preact/hooks"; import appContext from "../../components/app_context"; import NoteContext from "../../components/note_context"; +import { t } from "../../services/i18n"; import { NoteContent } from "../collections/legacy/ListOrGridView"; import { LaunchBarActionButton } from "../launch_bar/launch_bar_widgets"; import { useTriliumEvent } from "../react/hooks"; @@ -63,7 +64,7 @@ function Tab({ noteContext }: { return (
- {noteContext.note?.title} + {noteContext.note?.title ?? t("tab_row.new_tab")}
{note &&