We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42a82e1 commit 0c1f799Copy full SHA for 0c1f799
packages/demo/src/notes/NewNote.tsx
@@ -55,11 +55,13 @@ export const NewNote = ({
55
setText('');
56
notify('Note added successfully');
57
refetch();
58
- update(reference, {
59
- id: (record && record.id) as unknown as Identifier,
60
- data: { last_seen: date, status },
61
- previousData: record,
62
- });
+ if (reference === 'contacts') {
+ update(reference, {
+ id: (record && record.id) as unknown as Identifier,
+ data: { last_seen: date, status },
+ previousData: record,
63
+ });
64
+ }
65
},
66
}
67
);
0 commit comments