mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 02:03:47 +08:00
Merge pull request #1385 from kimyvgy-forks/fix
fix(TextPath): comparison is always false `pathCmd === {}`
This commit is contained in:
commit
2ce5f23c3b
@ -306,7 +306,7 @@ export class TextPath extends Shape<TextPathConfig> {
|
||||
}
|
||||
}
|
||||
|
||||
if (pathCmd === {} || p0 === undefined) {
|
||||
if (Object.keys(pathCmd).length === 0 || p0 === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user