mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
Refresh folder list when a new folder is added
This commit is contained in:
parent
6742734b9a
commit
6e025a50ee
2 changed files with 3 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ import { folderService } from '@/_services';
|
|||
import { toast } from 'react-toastify';
|
||||
|
||||
export const Folders = function Folders({
|
||||
folders, foldersLoading, totalCount, currentFolder, folderChanged
|
||||
folders, foldersLoading, totalCount, currentFolder, folderChanged, foldersChanged
|
||||
}) {
|
||||
|
||||
const [isLoading, setLoadingStatus] = useState(foldersLoading);
|
||||
|
|
@ -27,6 +27,7 @@ export const Folders = function Folders({
|
|||
setCreationStatus(false);
|
||||
setShowForm(false);
|
||||
setNewFolderName('');
|
||||
foldersChanged();
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@ class HomePage extends React.Component {
|
|||
folders={this.state.folders}
|
||||
currentFolder={currentFolder}
|
||||
folderChanged={this.folderChanged}
|
||||
foldersChanged={this.foldersChanged}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue