hotfix: (macOS) app platform prop not being set correctly

This commit is contained in:
Jamie Pine 2022-08-20 23:55:29 -07:00
parent 387dc4a867
commit b37aea37d0
No known key found for this signature in database
GPG key ID: D5AC85A0C2F646E9

View file

@ -39,6 +39,12 @@ function RouterContainer(props: { props: AppProps }) {
export default function SpacedriveInterface(props: AppProps) {
useInvalidateQuery();
// hotfix for bug where props are not updated, not sure of the cause
if (props.platform === 'unknown') {
// this should be a loading screen if we can't fix the issue above
return <></>;
}
return (
<ErrorBoundary FallbackComponent={ErrorFallback}>
<QueryClientProvider client={queryClient} contextSharing={true}>