fix(striker-ui-api): handle empty variable name in select host detail

main
Tsu-ba-me 1 year ago
parent 20b782d50c
commit 49bd47322d
  1. 2
      striker-ui-api/src/lib/request_handlers/host/buildQueryHostDetail.ts

@ -109,6 +109,8 @@ export const buildQueryHostDetail: BuildQueryDetailFunction = ({
networkInterfaceUuid,
],
) => {
if (!variableName) return previous;
const [variablePrefix, ...restVariableParts] =
variableName.split('::');
const keychain = MAP_TO_EXTRACTOR[variablePrefix](restVariableParts);

Loading…
Cancel
Save