mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
fix onDelete
prop
This commit is contained in:
parent
eb9b2f4277
commit
d590906bb0
@ -266,8 +266,8 @@ export class PostCard extends React.Component {
|
||||
})
|
||||
|
||||
if (result.success) {
|
||||
if (typeof this.props.close === "function") {
|
||||
this.props.close()
|
||||
if (typeof this.props.onDelete === "function") {
|
||||
this.props.onDelete()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user