Skip to content

Commit

Permalink
Merge pull request #6350 from keystonejs/6349/delete-bug
Browse files Browse the repository at this point in the history
resolve label bug
  • Loading branch information
gwyneplaine authored Aug 19, 2021
2 parents fd744dc + f139aa1 commit d97cfa0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/keystone/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @keystone-next/keystone

## 24.0.1

### Patch Changes

- [#6350](https://github.com/keystonejs/keystone/pull/6350) [`9ca1c41cd`](https://github.com/keystonejs/keystone/commit/9ca1c41cd6cc34b4cf4393abfbe2e4b43a275401) Thanks [@gwyneplaine](https://github.com/gwyneplaine)! - Fixed delete toast not leveraging labelField property.

## 24.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/keystone/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keystone-next/keystone",
"version": "24.0.0",
"version": "24.0.1",
"license": "MIT",
"main": "dist/keystone.cjs.js",
"module": "dist/keystone.esm.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ function DeleteManyButton({
acc.successfulItems++;
acc.successMessage =
acc.successMessage === ''
? (acc.successMessage += curr.label)
: (acc.successMessage += `, ${curr.label}`);
? (acc.successMessage += curr[list.labelField])
: (acc.successMessage += `, ${curr[list.labelField]}`);
} else {
acc.unsuccessfulItems++;
}
Expand Down

0 comments on commit d97cfa0

Please sign in to comment.