We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3599392 commit 3d3f29aCopy full SHA for 3d3f29a
client/components/main/Main/Database/Content/KeyContent/ZSetContent.jsx
@@ -100,7 +100,8 @@ class ZSetContent extends BaseContent {
100
content: 'Are you sure you want to delete the selected item? This action cannot be undone.'
101
}).then(() => {
102
const members = this.state.members;
103
- const deleted = members.splice(this.state.selectedIndex, 1);
+ const index = this.state.desc ? this.state.length - 1 - this.state.selectedIndex : this.state.selectedIndex;
104
+ const deleted = members.splice(index, 1);
105
if (deleted.length) {
106
this.props.redis.zrem(this.state.keyName, deleted[0]);
107
if (this.state.selectedIndex >= members.length - 1) {
0 commit comments