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 downgrade when the schema is missing #1304

Merged
merged 1 commit into from
Nov 21, 2019

Conversation

andresmgot
Copy link
Contributor

Description of the change

If found another issue, while downgrading from a version that contains a schema to one that doesn't, the form didn't got removed. This is because in the reducer, we were checking that the schema exists to be set in the state (maintaining the previous state otherwise).

@@ -24,8 +24,8 @@ const chartsSelectedReducer = (
error: undefined,
readmeError: undefined,
version: action.payload.chartVersion,
values: action.payload.values ? action.payload.values : state.values,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the same as:

values: action.payload.values || state.values,

? But fine either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was the same, I changed it to just take into account the payload value

@andresmgot andresmgot merged commit 20c013b into vmware-tanzu:master Nov 21, 2019
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