upd(mindmap): do not reset template after error occurred

This commit is contained in:
purocean
2021-12-13 18:23:00 +08:00
parent ae8b04e469
commit ca8a779fcc
@@ -279,7 +279,6 @@ const render = async (km: any, content: string) => {
km.setTemplate = km._setTemplate
} catch (error) {
await km.importData('text', t('mind-map.convert-error'))
km.useTemplate('structure')
km.execCommand('camera')
}
}