Fixes the teleporter UI (#25620)

* iywbfwbanfw yeah

* bam

---------

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
Contrabang
2024-05-30 16:15:27 +00:00
committed by GitHub
co-authored by Burzah
parent 61dfbc8f05
commit 3e23608846
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -93,7 +93,8 @@
data["teleporterhub"] = null
data["calibrated"] = null
data["regime"] = regime
data["target"] = (!target || !get_turf(target)) ? "None" : sanitize(get_area(target))
var/area/target_area = get_area(target)
data["target"] = target_area ? sanitize(target_area.name) : "None"
data["calibrating"] = calibrating
data["locked"] = locked ? TRUE : FALSE
data["targetsTeleport"] = null
@@ -47,6 +47,7 @@ export const Teleporter = (props, context) => {
<Dropdown
width={18.2}
selected={target}
disabled={calibrating}
options={Object.keys(targetsTeleport)}
color={target !== 'None' ? 'default' : 'bad'}
onSelected={(val) =>
@@ -62,6 +63,7 @@ export const Teleporter = (props, context) => {
<Dropdown
width={18.2}
selected={target}
disabled={calibrating}
options={Object.keys(targetsTeleport)}
color={target !== 'None' ? 'default' : 'bad'}
onSelected={(val) =>
File diff suppressed because one or more lines are too long