kopia lustrzana https://github.com/FacilMap/facilmap
Fix applying default colour when creating type
rodzic
2c132c1ad6
commit
f1e82ab926
|
@ -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
|
||||
};
|
||||
})
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue