Skip to content

Commit

Permalink
fix: display field_id for more fields in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Apr 26, 2024
1 parent cae002e commit e15e1ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,16 @@ const Sidebar = ({
</Accordion.Title>
<Accordion.Content active={selected === index}>
{/* Field ID info */}
{subblock.field_type}
{(subblock.field_type === 'text' ||
subblock.field_type === 'from' ||
subblock.field_type === 'textarea' ||
subblock.field_type === 'date') && (
subblock.field_type === 'date' ||
subblock.field_type === 'single_choice' ||
subblock.field_type === 'multiple_choice' ||
subblock.field_type === 'select' ||
subblock.field_type === 'checkbox' ||
subblock.field_type === 'attachment') && (
<Segment tertiary>
{intl.formatMessage(messages.fieldId)}:{' '}
<strong>
Expand Down

0 comments on commit e15e1ad

Please sign in to comment.