don't fall back to getGroups as it gets it no additional data
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
9ee78de7e5
commit
d92d95c37d
1 changed files with 6 additions and 2 deletions
|
@ -152,8 +152,12 @@ const Pill = React.createClass({
|
||||||
|
|
||||||
try {
|
try {
|
||||||
group = await FlairStore.getGroupProfileCached(cli, resourceId);
|
group = await FlairStore.getGroupProfileCached(cli, resourceId);
|
||||||
} catch (e) { // if FlairStore failed, rely on js-sdk's store which lacks info
|
} catch (e) { // if FlairStore failed, fall back to just groupId
|
||||||
group = cli.getGroup(resourceId);
|
group = {
|
||||||
|
groupId: resourceId,
|
||||||
|
avatarUrl: null,
|
||||||
|
name: null,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue