Merge pull request #1385 from kimyvgy-forks/fix

fix(TextPath): comparison is always false `pathCmd === {}`
This commit is contained in:
Anton Lavrenov 2022-08-09 10:00:11 -05:00 committed by GitHub
commit 2ce5f23c3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,7 +306,7 @@ export class TextPath extends Shape<TextPathConfig> {
}
}
if (pathCmd === {} || p0 === undefined) {
if (Object.keys(pathCmd).length === 0 || p0 === undefined) {
return undefined;
}