mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-28 04:09:18 +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 {
|
try {
|
||||||
const relationships = await fetchRelationships;
|
const relationships = await fetchRelationships;
|
||||||
console.log('fetched relationship', relationships);
|
console.log('fetched relationship', relationships);
|
||||||
|
setRelationshipUIState('default');
|
||||||
|
|
||||||
if (relationships.length) {
|
if (relationships.length) {
|
||||||
const relationship = relationships[0];
|
const relationship = relationships[0];
|
||||||
setRelationship(relationship);
|
setRelationship(relationship);
|
||||||
|
@ -625,7 +627,6 @@ function RelatedActions({ info, instance, authenticated, standalone }) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setRelationshipUIState('default');
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
setRelationshipUIState('error');
|
setRelationshipUIState('error');
|
||||||
|
|
Loading…
Add table
Reference in a new issue