Skip to content

Commit

Permalink
feat: small typo fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Eugene Jahn <[email protected]>
  • Loading branch information
eugenejahn committed May 26, 2022
1 parent 4293e7e commit d86e0d1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/zapp/console/src/components/Launch/LaunchForm/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,13 @@ export function literalsToLiteralValueMap(
nameToTypeMap: Record<string, Variable>,
): LiteralValueMap {
const literalValueMap: LiteralValueMap = new Map<string, Core.ILiteral>();
if (literals) {
for (var i = 0; i < Object.keys(literals).length; i++) {
const name = Object.keys(literals)[i];
const type = nameToTypeMap[name].type;
const typeDefinition = getInputDefintionForLiteralType(type);
const inputKey = createInputCacheKey(name, typeDefinition);
literalValueMap.set(inputKey, literals[Object.keys(literals)[i]]);
}

for (var i = 0; i < Object.keys(literals).length; i++) {
const name = Object.keys(literals)[i];
const type = nameToTypeMap[name].type;
const typeDefinition = getInputDefintionForLiteralType(type);
const inputKey = createInputCacheKey(name, typeDefinition);
literalValueMap.set(inputKey, literals[Object.keys(literals)[i]]);
}

return literalValueMap;
Expand Down

0 comments on commit d86e0d1

Please sign in to comment.