fix: Use chargingStations(where: {id: {_eq: }}) instead of ChargingStations_by_pk
This commit is contained in:
@@ -77,7 +77,7 @@ export const ChargingStationDetailCard = ({
|
|||||||
queryOptions: getPlainToInstanceOptions(ChargingStationClass, true),
|
queryOptions: getPlainToInstanceOptions(ChargingStationClass, true),
|
||||||
});
|
});
|
||||||
|
|
||||||
const station = data?.data;
|
const station = Array.isArray(data?.data) ? data?.data?.[0] : data?.data;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
query: { data: latestLogsData },
|
query: { data: latestLogsData },
|
||||||
|
|||||||
@@ -193,8 +193,8 @@ export const CHARGING_STATIONS_STATUS_COUNT_QUERY = gql`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
export const CHARGING_STATIONS_GET_QUERY = gql`
|
export const CHARGING_STATIONS_GET_QUERY = gql`
|
||||||
query GetChargingStationById($id: Int!) {
|
query GetChargingStationById($id: String!) {
|
||||||
ChargingStations_by_pk(id: $id) {
|
chargingStations(where: {id: {_eq: $id}}) {
|
||||||
id
|
id
|
||||||
tenantId
|
tenantId
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
|
|||||||
Reference in New Issue
Block a user