Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix layer generator with 2nd layer #204

Merged

Conversation

Clebal
Copy link
Contributor

@Clebal Clebal commented Mar 1, 2021

Added splitted logic to add layer in the useEffect when the source is already added to the view.

When the source is already added in a view, the layer that we want to attach to the view isn't being added. Using splitted files for injecting the code, we can fix this case.

From ch137053

@vercel
Copy link

vercel bot commented Mar 1, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/carto-frontend/cra-template-carto/DzJ8pp8Y1Ct47DSXpXUg5w2TQU62
✅ Preview: https://cra-template-c-git-feature-ch137053fix-layer-generator-w-9c14e1.vercel.app

@shortcut-integration
Copy link

This pull request has been linked to Clubhouse Story #137053: Fix layer generator with 2nd layer.

@Clebal Clebal requested a review from VictorVelarde March 1, 2021 15:14
@VictorVelarde VictorVelarde changed the title Added splitted logic to add layer in the useEffect when the source is… Fix layer generator with 2nd layer Mar 2, 2021
Copy link
Contributor

@VictorVelarde VictorVelarde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It currently fails on my side

* Fixed imports from @carto/react/redux
* Removed newlines on imports end
Copy link
Contributor

@VictorVelarde VictorVelarde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working now, thx!

@VictorVelarde VictorVelarde merged commit 506db09 into master Mar 10, 2021
@VictorVelarde VictorVelarde deleted the feature/ch137053/fix-layer-generator-with-2nd-layer branch March 10, 2021 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants