mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-26 19:25:47 +03:00
Make relationship ui state update faster
This commit is contained in:
parent
ad831fae35
commit
679fba4f66
1 changed files with 2 additions and 1 deletions
|
@ -564,6 +564,8 @@ function RelatedActions({ info, instance, authenticated, standalone }) {
|
|||
try {
|
||||
const relationships = await fetchRelationships;
|
||||
console.log('fetched relationship', relationships);
|
||||
setRelationshipUIState('default');
|
||||
|
||||
if (relationships.length) {
|
||||
const relationship = relationships[0];
|
||||
setRelationship(relationship);
|
||||
|
@ -625,7 +627,6 @@ function RelatedActions({ info, instance, authenticated, standalone }) {
|
|||
}
|
||||
}
|
||||
}
|
||||
setRelationshipUIState('default');
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
setRelationshipUIState('error');
|
||||
|
|
Loading…
Reference in a new issue