Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b4e42d4

Browse files
committed
fixed bug where it was not removing old edit
1 parent b68aa45 commit b4e42d4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎client/src/components/ListsContainer.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,13 @@ class ListsContainer extends PureComponent {
6262
})
6363
.then(response => {
6464
console.log(response);
65-
const { lists } = this.state;
66-
// TODO FIX THE EDIT FN
67-
lists[id - 1] = { id, title, excerpt };
6865
this.setState(() => ({
69-
lists,
7066
editingListId: null,
7167
}));
7268
})
69+
.then(() => {
70+
this.loadLists;
71+
})
7372
.catch(error => console.log(error));
7473
};
7574

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /