We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b52bf6 commit 6f721caCopy full SHA for 6f721ca
1 file changed
src/hooks/useClipboard.ts
@@ -81,7 +81,7 @@ export const useClipboard = (
81
if (visible) {
82
remove(state.list, { id });
83
84
- state.list.unshift(data);
+ state.list.unshift({ ...data, id });
85
}
86
87
return updateHistory(id, { createTime });
0 commit comments