Merge pull request #5177 from overleaf/jpa-handle-nested-api-responses

[web] hydrate-form: handle nested messages with nested text field

GitOrigin-RevId: 7f28a58ed59bc7a46f00edfd553adcc9d6333daa
This commit is contained in:
Jakob Ackermann 2021-09-23 11:48:42 +02:00 committed by Copybot
parent f06f1e2b96
commit 614565b3a2

View file

@ -36,7 +36,7 @@ function formSubmitHelper(formEl) {
if (data.message) {
messageBag.push({
type: 'message',
text: data.message,
text: data.message.text || data.message,
})
}
} catch (error) {