Fixed issue when translations were getting in the way of the UI rendering

This commit is contained in:
Colin Dawson 2026-02-12 13:34:20 +00:00
parent 40e81a555f
commit 9fb25fb698
2 changed files with 5 additions and 1 deletions

View File

@ -30,6 +30,10 @@ i18n
backend: {
loadPath: "/locales/{{lng}}/{{ns}}.json",
},
react: {
useSuspense: false,
returnNull: false,
},
});
export default i18n;

View File

@ -15,8 +15,8 @@ const AddTaskButton: React.FC<AddTaskButtonProps> = ({ taskType, onAdd }) => {
const [items, setItems] = React.useState<TaskMetadata[]>([]);
const [loading, setLoading] = React.useState(false);
const { t } = useTranslation(Namespaces.Common);
const { t: tTaskType } = useTranslation(Namespaces.TaskTypes);
const { t } = useTranslation(Namespaces.Common);
const toggle = async () => {
const next = !open;