Merge pull request #14995 from overleaf/jdt-detach-breaks-on-clone

remove messageComponent until we handle markup

GitOrigin-RevId: d4220277d3cb16eda32325eb3ba2f70102e36d2c
This commit is contained in:
Jimmy Domagala-Tang 2023-09-29 09:56:14 -04:00 committed by Copybot
parent 5a9b868bb6
commit 18726f739d

View file

@ -48,7 +48,10 @@ export default {
)
if (Array.isArray(message)) {
entry.message = message[0]
entry.messageComponent = message[1]
// removing the messageComponent, as the markup possible in it was causing crashes when
// attempting to broadcast it in the detach-context (cant structuredClone an html node)
// see https://github.com/overleaf/internal/discussions/15031 for context
// entry.messageComponent = message[1]
} else {
entry.message = message
}