fix folderPath check

This commit is contained in:
Abhinav 2022-08-29 15:16:20 +05:30
parent 4a344c941f
commit c8393f6f24

View file

@ -50,7 +50,7 @@ export default function WatchFolder({ open, onClose }: Iprops) {
const handleFolderSelection = async () => {
const folderPath = await watchFolderService.selectFolder();
if (folderPath?.length > 0) {
if (folderPath) {
setInputFolderPath(folderPath);
setChoiceModalOpen(true);
}