Skip to content

Commit

Permalink
Merge pull request #322 from ajthinking/drop-table-blob
Browse files Browse the repository at this point in the history
Drop double click table to open new tab feature
  • Loading branch information
ajthinking authored Oct 27, 2024
2 parents bf0f192 + 997525f commit f12b9b2
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/ui/src/components/Node/TableNodeComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,17 +202,6 @@ const TableNodeComponent = ({ id, data }: {
<div
ref={tableRef}
className="shadow-xl bg-gray-50 border rounded border-gray-300 text-xxxs"
onDoubleClick={() => {
const blob = new Blob([
JSON.stringify(tableInstance.options.data, null, 2)
], { type: 'application/json' });

const url = URL.createObjectURL(blob);

if (typeof window !== 'undefined') {
const handle = window.open(url, '_blank');
}
}}
>
<CustomHandle id={input.id} isConnectable={true} isInput={true} />

Expand Down

0 comments on commit f12b9b2

Please sign in to comment.