Skip to content

Commit

Permalink
fix(dcellar-web-ui): correct the bucket status (#389)
Browse files Browse the repository at this point in the history
* fix(dcellar-web-ui): correct the bucket status

* docs(dcellar-web-ui): update changelog
  • Loading branch information
devinxl authored May 30, 2024
1 parent ea64198 commit 944f3a4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
12 changes: 12 additions & 0 deletions apps/dcellar-web-ui/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "dcellar-web-ui",
"entries": [
{
"version": "1.6.1",
"tag": "dcellar-web-ui_v1.6.1",
"date": "Thu, 30 May 2024 10:00:54 GMT",
"comments": {
"patch": [
{
"comment": "Correct the bucket status"
}
]
}
},
{
"version": "1.6.0",
"tag": "dcellar-web-ui_v1.6.0",
Expand Down
9 changes: 8 additions & 1 deletion apps/dcellar-web-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - dcellar-web-ui

This log was last generated on Thu, 30 May 2024 09:05:12 GMT and should not be manually modified.
This log was last generated on Thu, 30 May 2024 10:00:54 GMT and should not be manually modified.

## 1.6.1
Thu, 30 May 2024 10:00:54 GMT

### Patches

- Correct the bucket status

## 1.6.0
Thu, 30 May 2024 09:05:12 GMT
Expand Down
2 changes: 1 addition & 1 deletion apps/dcellar-web-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dcellar-web-ui",
"version": "1.6.0",
"version": "1.6.1",
"private": false,
"scripts": {
"dev": "node ./scripts/dev.js -p 3200",
Expand Down
5 changes: 1 addition & 4 deletions apps/dcellar-web-ui/src/store/slices/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,7 @@ export const setupBucketList =
}

const bucketList =
res.body?.map((bucket) => ({
...bucket,
BucketInfo: { ...bucket.BucketInfo, BucketStatus: 1 },
})) || [];
res.body?.map((bucket) => ({ ...bucket, BucketInfo: { ...bucket.BucketInfo } })) || [];

const bucketSpInfo = bucketList.map((b) => ({
bucketName: b.BucketInfo.BucketName,
Expand Down

0 comments on commit 944f3a4

Please sign in to comment.