Fixed Bug 57984: Tapping on folder title after canceling creation of form from file leads to an error

This commit is contained in:
Ilya Oleshko 2022-07-05 16:30:59 +03:00
parent c7b556131e
commit 4d62881a3c
2 changed files with 8 additions and 6 deletions

View File

@ -98,7 +98,7 @@ class SelectFolderDialog extends React.Component {
componentWillUnmount() {
const { setFolderTitle, setProviderKey, setFolderId } = this.props;
console.log("componentWillUnmount");
//console.log("componentWillUnmount");
if (this.throttledResize) {
this.throttledResize && this.throttledResize.cancel();

View File

@ -483,14 +483,16 @@ export default inject(
const { toggleIsVisible, isVisible } = auth.infoPanelStore;
const { title, id, pathParts, navigationPath } = selectedFolderStore;
return {
showText: auth.settingsStore.showText,
isDesktop: auth.settingsStore.isDesktopClient,
isRootFolder: selectedFolderStore.parentId === 0,
title: selectedFolderStore.title,
currentFolderId: selectedFolderStore.id,
pathParts: selectedFolderStore.pathParts,
navigationPath: selectedFolderStore.navigationPath,
isRootFolder: pathParts?.length === 1,
title,
currentFolderId: id,
pathParts: pathParts,
navigationPath: navigationPath,
canCreate,
toggleInfoPanel: toggleIsVisible,
isInfoPanelVisible: isVisible,