Skip to content

Commit 7eeb9fd

Browse files
authored
fix(commandline): use correct schema on inputs with secondKey (@fehmer) (monkeytypegame#6813)
1 parent 81a497b commit 7eeb9fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/src/ts/commandline/util.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,12 @@ function _buildCommandForConfigKey<
7474
configMeta: configMeta as unknown as ConfigMetadata<
7575
keyof ConfigSchemas.Config
7676
>,
77-
schema,
77+
schema:
78+
"secondKey" in inputProps
79+
? ConfigSchemas.ConfigSchema.shape[inputProps.secondKey]
80+
: schema,
7881
});
82+
7983
if (result === undefined) {
8084
return inputCommand;
8185
}

0 commit comments

Comments
 (0)