Skip to content

Fix layer_properties template in order to generate valid-flow empty PaintProps - #6123

Merged
mourner merged 1 commit into
mapbox:masterfrom
CartoDB:fix-flow-layer-properties
Feb 9, 2018
Merged

mourner merged 1 commit into
mapbox:masterfrom
CartoDB:fix-flow-layer-properties

Conversation

@Jesus89

@Jesus89 Jesus89 commented Feb 9, 2018

Copy link
Copy Markdown
Contributor

This PR adds a fix in the layer_properties.js.ejs file to prevent the generation of non-flow-compatible code when the paintProperties array is empty. Instead of the following code:

export type PaintProps = {|
|};

now the following code is generated:

export type PaintProps = {};

Thanks!

@mourner
mourner merged commit e395884 into mapbox:master Feb 9, 2018
@mourner

mourner commented Feb 9, 2018

Copy link
Copy Markdown
Member

Thank you!

@Jesus89
Jesus89 deleted the fix-flow-layer-properties branch February 12, 2018 09:40
pathmapper pushed a commit to pathmapper/mapbox-gl-js that referenced this pull request Feb 13, 2018
pathmapper pushed a commit to pathmapper/mapbox-gl-js that referenced this pull request Feb 13, 2018
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.

2 participants