mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
added missing loadFromModelProps
This commit is contained in:
parent
88e2931615
commit
354174b1b2
@ -66,9 +66,18 @@ export class PostsListsComponent extends React.Component {
|
|||||||
loading: true,
|
loading: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
const result = await fn({
|
let payload = {
|
||||||
trim: this.state.list.length,
|
trim: this.state.list.length,
|
||||||
}).catch((err) => {
|
}
|
||||||
|
|
||||||
|
if (this.props.loadFromModelProps) {
|
||||||
|
payload = {
|
||||||
|
...payload,
|
||||||
|
...this.props.loadFromModelProps,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const result = await fn(payload).catch((err) => {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
|
|
||||||
app.message.error("Failed to load more posts")
|
app.message.error("Failed to load more posts")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user