-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix layer generator with 2nd layer #204
Conversation
… already added to the view.
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/carto-frontend/cra-template-carto/DzJ8pp8Y1Ct47DSXpXUg5w2TQU62 |
This pull request has been linked to Clubhouse Story #137053: Fix layer generator with 2nd layer. |
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working now, thx!
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