1
0
Fork 0
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:
Andrew Simachev 2025-02-18 16:34:14 +01:00
parent 422068c23d
commit 5a86e9c96a
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF
4 changed files with 3 additions and 5 deletions

View file

@ -51,7 +51,7 @@ powerMonitor.on('suspend', () => {
});
powerMonitor.on('resume', () => {
WindowManager.reloadAll();
WindowManager.sendToAll('reload');
Util.log('info', '[PowerMonitor] resume');
});

View file

@ -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,

View file

@ -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}`,

View file

@ -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;
};