closes #1364
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Co-authored-by: Jérôme Benoit <jerome.benoit@sap.com>
const { key } = commandPayload
const configurationKey: OCPPConfigurationKey[] = []
const unknownKey: string[] = []
- if (key == null) {
+ if (key == null || isEmpty(key)) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
for (const configKey of chargingStation.ocppConfiguration!.configurationKey!) {
if (!OCPP16ServiceUtils.isConfigurationKeyVisible(configKey)) {