Skip to content

Commit

Permalink
Fix applying default colour when creating type
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed Feb 26, 2024
1 parent 2c132c1 commit f1e82ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export const typeValidator = {
...rawTypeValidator,
create: rawTypeValidator.create.transform((type) => {
return {
...type,
defaultColour: type.type === "marker" ? "ff0000" : "0000ff"
defaultColour: type.type === "marker" ? "ff0000" : "0000ff",
...type
};
})
};
Expand Down

0 comments on commit f1e82ab

Please sign in to comment.