Skip to content

Commit 6d7060b

Browse files
authored
Fix bug in FlatParameters component (#527)
Signed-off-by: Ayoub LABIDI <[email protected]>
1 parent bcf3e38 commit 6d7060b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/FlatParameters/FlatParameters.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export function FlatParameters({
227227
if (param.name === inEditionParam && uncommitted !== null) {
228228
return uncommitted;
229229
}
230-
if (Object.hasOwn(initValues, param.name)) {
230+
if (initValues && Object.hasOwn(initValues, param.name)) {
231231
if (param.type === 'BOOLEAN') {
232232
// on the server side, we only store String, so we eventually need to convert before
233233
return initValues[param.name] === 'false'

0 commit comments

Comments
 (0)