Oops, fix bug in alt styles query loading state
Oh right, React Query's API is slightly different, fixed! (Previously, this would cause the PosePicker to show before all the data was ready, so alt styles would sometimes pop in after the popover was already open.)
This commit is contained in:
parent
8f934e83b8
commit
bdfa3aad0b
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ function PosePicker({
|
||||||
const { isSupportUser } = useSupport();
|
const { isSupportUser } = useSupport();
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
|
|
||||||
const loading = posesQuery.loading || altStylesQuery.loading;
|
const loading = posesQuery.loading || altStylesQuery.isLoading;
|
||||||
const error = posesQuery.error ?? altStylesQuery.error;
|
const error = posesQuery.error ?? altStylesQuery.error;
|
||||||
const poseInfos = posesQuery.poseInfos;
|
const poseInfos = posesQuery.poseInfos;
|
||||||
const altStyles = altStylesQuery.data ?? [];
|
const altStyles = altStylesQuery.data ?? [];
|
||||||
|
|
Loading…
Reference in a new issue