Fix delete button, remove Translations.WT

This commit is contained in:
Pieter Vander Vennet 2022-04-21 12:39:28 +02:00
parent 50a7597c5a
commit 1271f24160
11 changed files with 69 additions and 62 deletions

View file

@ -16,7 +16,7 @@ export default class TitleHandler {
const currentTitle: UIEventSource<string> = state.selectedElement.map(
selected => {
const layout = state.layoutToUse
const defaultTitle = Translations.WT(layout?.title)?.txt ?? "MapComplete"
const defaultTitle = layout?.title?.txt ?? "MapComplete"
if (selected === undefined) {
return defaultTitle