Skip to content

Commit

Permalink
#132 - Drag and drop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Oct 5, 2021
1 parent caceed2 commit 7b2d7b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/commands/Dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || "");
Expand Down
2 changes: 0 additions & 2 deletions src/dashboardWebView/components/Media/Media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down

0 comments on commit 7b2d7b8

Please sign in to comment.