mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-14 12:24:04 +00:00
hotfix: (macOS) app platform prop not being set correctly
This commit is contained in:
parent
387dc4a867
commit
b37aea37d0
|
@ -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}>
|
||||
|
|
Loading…
Reference in a new issue