#132 - Drag and drop fix

This commit is contained in:
Elio Struyf
2021-10-05 09:12:03 +02:00
parent caceed2d4c
commit 7b2d7b8aa5
2 changed files with 5 additions and 3 deletions
+5 -1
View File
@@ -507,7 +507,11 @@ export class Dashboard {
const wsFolder = Folders.getWorkspaceFolder();
const staticFolder = SettingsHelper.get<string>(SETTINGS_CONTENT_STATIC_FOLDER);
const wsPath = wsFolder ? wsFolder.fsPath : "";
let absFolderPath = join(wsPath, staticFolder || "", folder || "");
let absFolderPath = join(wsPath, staticFolder || "");
if (folder) {
absFolderPath = folder;
}
if (!existsSync(absFolderPath)) {
absFolderPath = join(wsPath, folder || "");
@@ -16,8 +16,6 @@ import { useDropzone } from 'react-dropzone'
import { useCallback } from 'react';
import { DashboardMessage } from '../../DashboardMessage';
import { FrontMatterIcon } from '../../../panelWebView/components/Icons/FrontMatterIcon';
import { FolderIcon } from '@heroicons/react/solid';
import { basename } from 'path';
import { FolderItem } from './FolderItem';
export interface IMediaProps {}