pr comments

pull/608/head
Julie Graceffa 2 months ago
parent ffc54eb7a2
commit 9a0d4315c2

@ -1725,7 +1725,7 @@ export default {
}) })
}, },
scrollToArea (area) { scrollToArea (area) {
const documentRef = this.documentRefs.find((a) => a.document.uuid === area.attachment_uuid) const documentRef = this.documentRefs.find((a) => a.document.uuid === area.attachment_uuid)
documentRef.scrollToArea(area) documentRef.scrollToArea(area)
@ -1742,8 +1742,10 @@ export default {
// Wait for submitter switch to complete // Wait for submitter switch to complete
this.$nextTick(() => { this.$nextTick(() => {
// Scroll field into view in sidebar // Scroll field into view in sidebar (with null check for safety)
this.$refs.fields.scrollFieldIntoView(field) if (this.$refs.fields) {
this.$refs.fields.scrollFieldIntoView(field)
}
// Highlight the field by setting the selected area // Highlight the field by setting the selected area
const area = field.areas?.[0] const area = field.areas?.[0]

Loading…
Cancel
Save