Add ability to discard Information Banner (#16019)

Fixes https://github.com/twentyhq/twenty/issues/14028

<img width="1917" height="965" alt="image"
src="https://github.com/user-attachments/assets/eeb5eab7-2c50-48be-8218-af6052b30777"
/>
This commit is contained in:
Charles Bochet
2025-11-24 17:34:10 +01:00
committed by GitHub
parent 42fef6e09b
commit d526b07078
19 changed files with 219 additions and 19 deletions
@@ -39,8 +39,12 @@ export const useLazyFindOneRecord = <T extends ObjectRecord = ObjectRecord>({
withSoftDeleted,
});
const [findOneRecord, { loading, error, data, called }] =
useLazyQuery(findOneRecordQuery);
const [findOneRecord, { loading, error, data, called }] = useLazyQuery(
findOneRecordQuery,
{
client: apolloCoreClient,
},
);
return {
findOneRecord: async ({
@@ -50,7 +54,6 @@ export const useLazyFindOneRecord = <T extends ObjectRecord = ObjectRecord>({
await findOneRecord({
variables: { objectRecordId },
fetchPolicy,
client: apolloCoreClient,
onCompleted: (data) => {
const record = getRecordFromRecordNode<T>({
recordNode: data[objectNameSingular],