Browse Source

fix: onDrop json parse issue

pull/7376/head
Ramesh Mane 12 months ago
parent
commit
f32725190a
  1. 2
      packages/nc-gui/components/tabs/Smartsheet.vue

2
packages/nc-gui/components/tabs/Smartsheet.vue

@ -87,7 +87,7 @@ const onDrop = async (event: DragEvent) => {
event.preventDefault()
try {
// Access the dropped data
const data = JSON.parse(event.dataTransfer!.getData('text/json'))
const data = JSON.parse(event.dataTransfer!.getData('text/json') || '{}')
// Do something with the received data
// if dragged item is not from the same source, return

Loading…
Cancel
Save