From d8e3fe5fbc4d37c9f7f0afa45010eb36f3620212 Mon Sep 17 00:00:00 2001 From: Karim Naaji Date: Thu, 14 May 2020 13:55:19 -0700 Subject: [PATCH] Silence inconsistent flow error --- src/style/style_layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style/style_layer.js b/src/style/style_layer.js index 4203632a888..c2a7d6cb0cb 100644 --- a/src/style/style_layer.js +++ b/src/style/style_layer.js @@ -90,7 +90,6 @@ class StyleLayer extends Evented { } if (properties.paint) { - this._transitionablePaint = new Transitionable(properties.paint); for (const property in layer.paint) { @@ -101,6 +100,7 @@ class StyleLayer extends Evented { } this._transitioningPaint = this._transitionablePaint.untransitioned(); + //$FlowFixMe this.paint = new PossiblyEvaluated(properties.paint); } }