Move hashId to stationInfo
[e-mobility-charging-stations-simulator.git] / src / ui / web / src / components / charging-stations / CSData.vue
index ea8fd1da86569ad5870dabce006ec0c7dfbf49eb..f4539469ccc97b795e0b7386ed6e40792aefa7d6 100644 (file)
@@ -42,15 +42,15 @@ const props = defineProps<{
 //   idTag: '',
 // });
 
-function getHashId(): string {
-  return props.chargingStation.hashId;
-}
 function getConnectors(): ConnectorStatus[] {
   return props.chargingStation.connectors?.slice(1);
 }
 function getInfo(): ChargingStationInfo {
   return props.chargingStation.stationInfo;
 }
+function getHashId(): string {
+  return getInfo().hashId;
+}
 function getId(): string {
   return Utils.ifUndefined<string>(getInfo().chargingStationId, 'Ø');
 }