mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-18 08:56:08 +08:00
Fix typing in setDrag
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
/**
|
||||
* Helper to configure datatransfer for drag & drop operations
|
||||
*/
|
||||
import { useEventStore } from "@/stores/eventStore";
|
||||
import { type EventData, useEventStore } from "@/stores/eventStore";
|
||||
|
||||
export function setDrag(evt: DragEvent, data = null, multiple = false) {
|
||||
export function setDrag(evt: DragEvent, data?: EventData, multiple = false) {
|
||||
const eventStore = useEventStore();
|
||||
if (data) {
|
||||
evt.dataTransfer?.setData("text", JSON.stringify([data]));
|
||||
|
||||
Reference in New Issue
Block a user