Skip to content

Commit

Permalink
fix(layer): shape layer serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
thoaif committed Oct 15, 2021
1 parent e256479 commit d17188f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/layers/shape-layer.ts
Expand Up @@ -132,11 +132,7 @@ export class ShapeLayer extends Layer {
*
* @returns JSON object
*/
public toJSON(key?: string): Record<string, any> | undefined {
if (key) {
return undefined;
}

public toJSON(): Record<string, any> {
return {
ao: this.autoOrient ? 1 : 0,
bm: this.blendMode,
Expand Down

0 comments on commit d17188f

Please sign in to comment.