We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99c3450 commit 4519cd9Copy full SHA for 4519cd9
1 file changed
x-pack/plugins/maps/public/classes/layers/layer_group/layer_group.tsx
@@ -283,8 +283,10 @@ export class LayerGroup implements ILayer {
283
}
284
285
getErrors(): string {
286
- // TODO return childLayers.reduce.getErrors()
287
- return '';
+ const firstChildWithError = this._children.find((child) => {
+ return child.hasErrors();
288
+ });
289
+ return firstChildWithError ? firstChildWithError.getErrors() : '';
290
291
292
async syncData(syncContext: DataRequestContext) {
0 commit comments