Skip to content

Commit 63f1636

Browse files
committed
fix: ProfileExplorer mis-renders multiselect answers with numeric keys
1 parent 510cc68 commit 63f1636

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: plugins/plugin-codeflare/src/components/ProfileExplorer.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,10 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
439439
id,
440440
title,
441441
//name: this.form(form),
442-
name: "",
443-
children: Object.entries(form).map(([title, name]) => ({ title, name: this.leafFor(name) })),
442+
name: Array.isArray(form) ? form.join(" ║ ") : "",
443+
children: Array.isArray(form)
444+
? undefined
445+
: Object.entries(form).map(([title, name]) => ({ title, name: this.leafFor(name) })),
444446
}
445447
} catch (err) {
446448
return {

0 commit comments

Comments
 (0)