Skip to content

Commit

Permalink
Update x-pack/plugins/lens/public/datasources/form_based/form_based.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
  • Loading branch information
stratoula and dej611 authored Oct 20, 2022
1 parent 9cb51db commit 9257e77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export function getFormBasedDatasource({
// delete layers linked to this layer
Object.keys(newLayers).forEach((id) => {
const linkedLayers = newLayers[id]?.linkToLayers;
if (linkedLayers && linkedLayers.length && linkedLayers.includes(layerId)) {
if (linkedLayers && linkedLayers.includes(layerId)) {
delete newLayers[id];
}
});
Expand Down

0 comments on commit 9257e77

Please sign in to comment.