Skip to content

Commit

Permalink
#356 fix: Fix tagsOptions incorrect mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsobspinto committed Dec 6, 2023
1 parent 6b26307 commit 0339d2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const UserAccountDialog = (props: any) => {
return (
<Modal open={Boolean(open)} handleClose={handleClose} title="My account">
<Box display="flex" className={classes.myAccount}>
<Avatar title={user?.username} src={user.avatarUrl ? user.avatarUrl : null} />
<Avatar title={user?.username} src={user?.avatarUrl ? user?.avatarUrl : null} />
<Box className="details">
<Box className="detail-block">
<Typography component="h4">Name</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const ExplorationSpinalCordDialog = (props: any) => {

<Box className={classes.formGroup}>
<Typography component="label">Tags</Typography>
<TagsAutocomplete tags={tags} tagsOptions={tagsOptions.map((t: any) => t.name)} onChange={onTagsChange} />
<TagsAutocomplete tags={tags} tagsOptions={tagsOptions} onChange={onTagsChange} />
</Box>
</Box>
</Modal>
Expand Down

0 comments on commit 0339d2e

Please sign in to comment.