Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Fix overwriting default project model #2250

Merged
merged 3 commits into from
Sep 8, 2021
Merged

Conversation

gregone
Copy link
Contributor

@gregone gregone commented Sep 8, 2021

Fixes: #2150

populateExistingFields was mutating the DEFAULT_PROJECT_MODEL properties, thus causing the values to be retained when the component was reused.

This PR sets the defaultProject on the component as a static property, and then reads keys from that object in populateExistingFields.

@github-actions github-actions bot added the ui label Sep 8, 2021
@jgwhite
Copy link
Contributor

jgwhite commented Sep 8, 2021

Do we need to backport this?

@briancain
Copy link
Member

Should this issue be linked to this PR? #2150

Do we need to backport this?

I think so yes! 🤔

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui: Leaky state in project settings form
3 participants