updateCanvas after import (#771)
* updateCanvas after import * remove test causing a race condition with Cypress on CI * fix indent
This commit is contained in:
@@ -134,7 +134,10 @@ class Editor extends EditorStartup {
|
||||
*/
|
||||
loadSvgString (str, { noAlert } = {}) {
|
||||
const success = this.svgCanvas.setSvgString(str) !== false
|
||||
if (success) return
|
||||
if (success) {
|
||||
this.updateCanvas()
|
||||
return
|
||||
}
|
||||
if (!noAlert) seAlert(this.i18next.t('notification.errorLoadingSVG'))
|
||||
throw new Error('Error loading SVG')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user