mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 19:11:29 +00:00
netlify checks
This commit is contained in:
1 parent
8d98408b37
commit
ef6345a824
1 file changed
+1
-1
@@ -16,7 +16,7 @@ export default function SubRoutes ({
|
||||
const { path } = useRouteMatch();
|
||||
const history = useHistory();
|
||||
history.listen(({pathname}, action) => {
|
||||
if (pathname === path || pathname.match(/upload|select-media/g) && pageState.status >= states.FILE_LOADING){
|
||||
if ((pathname === path || pathname.match(/upload|select-media/g)) && pageState.status >= states.FILE_LOADING){
|
||||
//reset page if landed on page "Freshly"
|
||||
dispatchPageState({type: 'reset'})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user