Fall back to a plain "Opened" when the server sends no message

This commit is contained in:
piexel committed 2026-11-06 05:31:18 +01:00
1 parent a27c0bf860
commit 1c50eaf776
1 file changed
+1 -1
+1 -1
View File
@@ -199,7 +199,7 @@ export function MapStudio({ client, world, theme, onDisconnect }: MapStudioProps
}
client
.openInEditor(spot.x, spot.z, viewId)
.then((message) => tell(message ?? 'Opened on the server'))
.then((message) => tell(message ?? 'Opened'))
.catch((failure: Error) => tell(failure.message))
},
[client, viewId, tell]