mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
fix query
This commit is contained in:
parent
fa0768c803
commit
7691702c10
@ -26,7 +26,7 @@ export default class Streams extends React.Component {
|
||||
if (streams && Array.isArray(streams)) {
|
||||
// resolve user_id with user basic data
|
||||
streams = streams.map(async (stream) => {
|
||||
const userData = await this.api.get.user(undefined, { user_id: stream.user_id }).catch((error) => {
|
||||
const userData = await this.api.get.user(undefined, { _id: stream.user_id }).catch((error) => {
|
||||
console.error(error)
|
||||
antd.message.error(error)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user