Closed Vitaliy-1 closed 2 years ago
This sounds like a duplicate of https://github.com/pkp/pkp-lib/issues/6969. Are you sure that your copy of lib/ui-library
is up-to-date and that you've recently recompiled the JS?
For some reason unable to replicate, probably bug with browser's cache or js compilation.
Describe the bug When trying to save the edited email template, I'm receiving js error:
The error refers to this line: https://github.com/pkp/ui-library/blob/7a0659967fa39eef926c35fb7445f6f28d18a256/src/components/Form/Form.vue#L188
To Reproduce Steps to reproduce the behavior:
Workflow
->Email
->Email Templates
Edit
Save
What application are you using? OJS main branch Google Chrome Version 95.0.4638.54
Additional information It's strange that I haven't received this error before, as I don't see any new changes there. What's is happening is that there are 3 fields in the form:
field-html
,field-text
andfield-rich-textarea
. By the time when the methodsubmitValues
is executed,field-html
(description) doesn't have a value property. If add additional check above referenced line to:Fixes the issue.
edit This is what props Vue debugging tool gives me when inspecting the FieldHTML before saving