This commit is contained in:
JFH
2021-12-24 16:05:45 +01:00
parent 5d315e4e92
commit 163fa5dd4c
2 changed files with 6 additions and 23 deletions

View File

@@ -529,7 +529,7 @@ export const importSvgString = function (xmlString) {
// Look for symbol and make sure symbol exists in image
if (svgContext_.getImportIds(uid) && svgContext_.getImportIds(uid).symbol) {
const parents = getParents(svgContext_.getImportIds(uid).symbol, '#svgroot');
if (parents.length) {
if (parents?.length) {
useExisting = true;
}
}