这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/Table/useMenuAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const SUPPORTED_TYPES_COPY = new Set([
// CONNECTION
FieldType.reference,
FieldType.id,
FieldType.arraySubTable,
]);

export const SUPPORTED_TYPES_PASTE = new Set([
Expand All @@ -83,6 +84,7 @@ export const SUPPORTED_TYPES_PASTE = new Set([
FieldType.markdown,
// CONNECTION
FieldType.reference,
FieldType.arraySubTable,
]);

export function useMenuAction(
Expand Down Expand Up @@ -217,7 +219,7 @@ export function useMenuAction(
}
break;
default:
parsed = JSON.parse(text);
parsed = JSON.parse(JSON.stringify(text);
break;
}

Expand Down