Skip to content

Commit

Permalink
fix(form-builder): show header on read-only array item dialogs for ty…
Browse files Browse the repository at this point in the history
…pes without a title
  • Loading branch information
bjoerge committed Jun 7, 2021
1 parent c8313f1 commit 5543a7b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -43,7 +43,7 @@ export function EditDialog(props: Props) {
compareValue,
} = props

const title = readOnly ? type.title || '' : `Edit ${type.title || ''}`
const title = readOnly ? `View ${type.title || ''}` : `Edit ${type.title || ''}`

const childMarkers = useMemo(() => markers.filter((marker) => marker.path.length > 1), [markers])
const childPresence = useMemo(() => presence.filter((_presence) => _presence.path.length > 1), [
Expand Down

0 comments on commit 5543a7b

Please sign in to comment.