mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 16:05:42 +00:00
reload on broken monaco editor
This commit is contained in:
@@ -58,6 +58,11 @@
|
||||
if (event.reason?.message) {
|
||||
const { message, body, status } = event.reason
|
||||
|
||||
if (message === 'Missing service editorService') {
|
||||
console.error('Reloading the page to fix a Monaco Editor bug')
|
||||
location.reload()
|
||||
return
|
||||
}
|
||||
// Unhandled errors from Monaco Editor don't logout the user
|
||||
if (monacoEditorUnhandledErrors.includes(message)) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user