diff --git a/apps/client/src/widgets/sql_table_schemas.tsx b/apps/client/src/widgets/sql_table_schemas.tsx index a72eabc52..3605c2f95 100644 --- a/apps/client/src/widgets/sql_table_schemas.tsx +++ b/apps/client/src/widgets/sql_table_schemas.tsx @@ -14,9 +14,10 @@ export default function SqlTableSchemas() { server.get("sql/schema").then(setSchemas); }, []); + const isEnabled = note?.mime === "text/x-sqlite;schema=trilium" && schemas; return ( -
- {note?.mime === "text/x-sqlite;schema=trilium" && schemas && ( +
+ {isEnabled && ( <> {t("sql_table_schemas.tables")}{": "}