Fix fog colour string warning

This commit is contained in:
Mitchell McCaffrey 2021-05-24 13:07:54 +10:00
parent 6ef3f680b4
commit 4b225e5c14

View File

@ -496,7 +496,9 @@ function MapFog({
: editOpacity
: 1;
// Control opacity only on fill as using opacity with stroke leads to performance issues
const fill = new Color(colors[shape.color] || shape.color).alpha(opacity);
const fill = new Color(colors[shape.color] || shape.color)
.alpha(opacity)
.string();
const stroke =
editable && active
? colors.lightGray