Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
fix: Drag-n-drop into playlists that are not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan committed Jun 13, 2020
1 parent 0a71ce5 commit 756ace3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/components/playlist/sidebar-item.vue
Expand Up @@ -105,7 +105,7 @@ export default Vue.extend({
return false
}
if (!e.dataTransfer || !e.dataTransfer.getData('application/x-koel.text+plain')) {
if (!e.dataTransfer?.getData('application/x-koel.text+plain')) {
return false
}
Expand Down
2 changes: 1 addition & 1 deletion js/directives/droppable.ts
Expand Up @@ -2,7 +2,7 @@ import { $ } from '@/utils'
import { DirectiveOptions } from 'vue'

export const droppable: DirectiveOptions = {
update: (el: HTMLElement, { value }: { value: Function | never }): void => {
bind: (el: HTMLElement, { value }: { value: Function | never }): void => {
if (!(value instanceof Function)) {
throw new Error(`Expect a function, received ${typeof value}`)
}
Expand Down

0 comments on commit 756ace3

Please sign in to comment.