@mapbox/mapbox-gl-style-spec 13.24.0-alpha.2 → 13.24.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -10520,17 +10520,17 @@ class Coalesce {
10520
10520
  evaluate(ctx) {
10521
10521
  let result = null;
10522
10522
  let argCount = 0;
10523
- let requestedImageName;
10523
+ let firstImage;
10524
10524
  for (const arg of this.args) {
10525
10525
  argCount++;
10526
10526
  result = arg.evaluate(ctx);
10527
10527
  if (result && result instanceof ResolvedImage && !result.available) {
10528
- if (!requestedImageName) {
10529
- requestedImageName = result.name;
10528
+ if (!firstImage) {
10529
+ firstImage = result;
10530
10530
  }
10531
10531
  result = null;
10532
10532
  if (argCount === this.args.length) {
10533
- result = requestedImageName;
10533
+ return firstImage;
10534
10534
  }
10535
10535
  }
10536
10536
  if (result !== null)