Skip to content

Commit

Permalink
Fix [Artifacts, Datasets, Models] successful deletion notification me…
Browse files Browse the repository at this point in the history
…ssage (#2169)
  • Loading branch information
ilan7empest authored Jan 3, 2024
1 parent 20b950e commit a755cf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/handleDeleteArtifact.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ illegal under applicable law, and the grant of the foregoing license
under the Apache 2.0 license is conditioned upon your compliance with
such restriction.
*/
import { capitalize } from 'lodash'
import { deleteArtifact } from '../reducers/artifactsReducer'
import { setNotification } from '../reducers/notificationReducer'
import { showErrorNotification } from './notifications.util'
Expand All @@ -39,7 +40,7 @@ export const handleDeleteArtifact = (
setNotification({
status: 200,
id: Math.random(),
message: `${artifactType} is successfully deleted`
message: `${capitalize(artifactType)} is successfully deleted`
})
)
})
Expand Down

0 comments on commit a755cf1

Please sign in to comment.