Skip to content

Commit 89b18cb

Browse files
committed
Fix pages not rendering
1 parent 5173f1f commit 89b18cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/scripts/hoc/requireServerPermission.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import Can from '@/components/elements/Can';
3-
import NotFound from '@/components/screens/NotFound';
43
import ScreenBlock from '@/components/screens/ScreenBlock';
54

65
const requireServerPermission = (Component: React.ComponentType<any>, permissions: string | string[]) => {
@@ -17,7 +16,7 @@ const requireServerPermission = (Component: React.ComponentType<any>, permission
1716
/>
1817
}
1918
>
20-
<Component/>
19+
<Component {...this.props}/>
2120
</Can>
2221
);
2322
}

0 commit comments

Comments
 (0)