Skip to content

Commit

Permalink
Fix [Documents] 'Model was updated successfully' appears upon updatin…
Browse files Browse the repository at this point in the history
…g document labels (#3006)
  • Loading branch information
ilan7empest authored Jan 13, 2025
1 parent 19c61a8 commit 3c5f22b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Documents/documents.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,15 @@ export const handleApplyDetailsChanges = (
setNotification({
status: response.status,
id: Math.random(),
message: 'Model was updated successfully'
message: 'Document was updated successfully'
})
)
})
.catch(error => {
const customErrorMsg =
error.response?.status === FORBIDDEN_ERROR_STATUS_CODE
? 'Permission denied'
: getErrorMsg(error, 'Failed to update the model')
: getErrorMsg(error, 'Failed to update the document')

showErrorNotification(dispatch, error, '', customErrorMsg, () =>
handleApplyDetailsChanges(changes, projectName, selectedItem, setNotification, dispatch)
Expand Down

0 comments on commit 3c5f22b

Please sign in to comment.