mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
JS-4527: fix
This commit is contained in:
parent
422068c23d
commit
5a86e9c96a
4 changed files with 3 additions and 5 deletions
|
@ -51,7 +51,7 @@ powerMonitor.on('suspend', () => {
|
|||
});
|
||||
|
||||
powerMonitor.on('resume', () => {
|
||||
WindowManager.reloadAll();
|
||||
WindowManager.sendToAll('reload');
|
||||
Util.log('info', '[PowerMonitor] resume');
|
||||
});
|
||||
|
||||
|
|
|
@ -338,6 +338,7 @@ class App extends React.Component<object, State> {
|
|||
S.Common.redirectSet(route);
|
||||
S.Common.configSet(account.config, false);
|
||||
|
||||
const spaceId = Storage.get('spaceId');
|
||||
const routeParam = {
|
||||
replace: true,
|
||||
onRouteChange: hide,
|
||||
|
|
|
@ -481,9 +481,6 @@ const BlockFeatured = observer(class BlockFeatured extends React.Component<Props
|
|||
};
|
||||
|
||||
const object = S.Detail.get(rootId, rootId, [ 'setOf', 'internalFlags' ]);
|
||||
|
||||
console.log(this.menuContext);
|
||||
|
||||
const menuParam = {
|
||||
menuId: item.id,
|
||||
element: `#${this.menuContext.getId()} #item-${item.id}`,
|
||||
|
|
|
@ -79,7 +79,7 @@ class UtilRouter {
|
|||
S.Popup.closeAll();
|
||||
|
||||
if (routeParam.spaceId && ![ J.Constant.storeSpaceId, J.Constant.blankRouteId, space ].includes(routeParam.spaceId)) {
|
||||
this.switchSpace(routeParam.spaceId, route, false, routeParam);
|
||||
this.switchSpace(routeParam.spaceId, route, false, param);
|
||||
return;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue