[TASK-1165] Fix project header title serving old asset name #5174
+13
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
./python-format.sh
to make sure that your code lints and that you've followed our coding styleDescription
Fixes a problem when editing project title using top header - after successful update API call, component was reverting back to old name. This was a bug in the UI, database was storing the updated name - it was possible to overwrite the updated name due to confusing bug in the UI though.
Notes
For some reason this component was using props name when successful API call response was received - instead of relying on the response data. There still is a risko of bugs due to asset cache, so I left a comment for future debugger. I was testing out UI to try to break it and didn't find any bug as of yet.
Testing
Try changing title using header editor. See video at #5170
Related issues
Fixes #5170