Skip to content

Commit

Permalink
fix(core): Fix argsArrayToHash, case where arg not present in this.ar…
Browse files Browse the repository at this point in the history
…gs (#1224)
  • Loading branch information
nemo-js authored Nov 22, 2021
1 parent a3066b0 commit 454fdf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/common/configurable-operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export class ConfigurableOperationDef<T extends ConfigArgs = ConfigArgs> {
protected argsArrayToHash(args: ConfigArg[]): ConfigArgValues<T> {
const output: ConfigArgValues<T> = {} as any;
for (const arg of args) {
if (arg && arg.value != null) {
if (arg && arg.value != null && this.args[arg.name] != null) {
output[arg.name as keyof ConfigArgValues<T>] = coerceValueToType<T>(
arg.value,
this.args[arg.name].type,
Expand Down

0 comments on commit 454fdf5

Please sign in to comment.