From f1e82ab926e25ab3d3197df401df4fb18531dd9d Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Mon, 26 Feb 2024 20:10:58 +0100 Subject: [PATCH] Fix applying default colour when creating type --- types/src/type.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/src/type.ts b/types/src/type.ts index df3a0c07..e5de7bcd 100644 --- a/types/src/type.ts +++ b/types/src/type.ts @@ -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 }; }) };