fixed deletion bug

This commit is contained in:
Martina 2021-01-13 18:09:26 -08:00
parent 36e0c214fa
commit 7d0e84d715

View File

@ -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)) {