Fixed Bug 57984: Tapping on folder title after canceling creation of form from file leads to an error
This commit is contained in:
parent
c7b556131e
commit
4d62881a3c
@ -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();
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user