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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user