Skip to content

Commit

Permalink
Fix(UI): Move setUpdatedName call inside updateName promise in Datase…
Browse files Browse the repository at this point in the history
…t name edit (datahub-project#12232)

Co-authored-by: Raj Tekal <[email protected]>
  • Loading branch information
Bhadhri03 and rtekal authored Jan 17, 2025
1 parent fb08919 commit 825309e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ function EntityName(props: Props) {
setIsEditing(false);
return;
}
setUpdatedName(name);
updateName({ variables: { input: { name, urn } } })
.then(() => {
setUpdatedName(name);
setIsEditing(false);
message.success({ content: 'Name Updated', duration: 2 });
refetch();
Expand Down

0 comments on commit 825309e

Please sign in to comment.