File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/app/src/components/panel/base Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,14 @@ const isFolderCreationInProgress = computed(() => context.actionInProgress.value
1717
1818async function onFileDrop(event : DragEvent ) {
1919 if (event .dataTransfer ?.files ) {
20- if (context .feature .value === StudioFeature .Media ) {
21- await context .itemActionHandler [StudioItemActionId .UploadMedia ]({
22- directory: tree .value .currentItem .value .fsPath ,
23- files: Array .from (event .dataTransfer .files ),
24- })
20+ if (context .feature .value !== StudioFeature .Media ) {
21+ return
2522 }
23+
24+ await context .itemActionHandler [StudioItemActionId .UploadMedia ]({
25+ directory: tree .value .currentItem .value .fsPath ,
26+ files: Array .from (event .dataTransfer .files ),
27+ })
2628 }
2729}
2830 </script >
You can’t perform that action at this time.
0 commit comments