mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-20 10:47:18 +03:00
fixed deletion bug
This commit is contained in:
parent
36e0c214fa
commit
7d0e84d715
@ -93,7 +93,7 @@ export default class SidebarSingleSlateSettings extends React.Component {
|
||||
return;
|
||||
}
|
||||
|
||||
let slates = this.props.viewer.slates.filter((slate) => slate.id !== this.props.current.id);
|
||||
let slates = this.props.viewer.slates.filter((slate) => slate.id !== this.props.data.id);
|
||||
this.props.onUpdateViewer({ slates });
|
||||
|
||||
this.props.onAction({
|
||||
@ -102,7 +102,7 @@ export default class SidebarSingleSlateSettings extends React.Component {
|
||||
});
|
||||
|
||||
const response = await Actions.deleteSlate({
|
||||
id: this.props.current.id,
|
||||
id: this.props.data.id,
|
||||
});
|
||||
|
||||
if (Events.hasError(response)) {
|
||||
|
Loading…
Reference in New Issue
Block a user