mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 04:42:02 +08:00
fix(TextPath): comparison is always false pathCmd === {}
This commit is contained in:
parent
baf8780b26
commit
6f9c3fcbf9
@ -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