8191 command k workflow trigger for selected record (#8315)
Closes #8191 https://github.com/user-attachments/assets/694da229-cc91-4df2-97a0-49cd5dabcf12
This commit is contained in:
@ -10,5 +10,9 @@ export const useApolloMetadataClient = () => {
|
||||
return apolloClient;
|
||||
}
|
||||
|
||||
if (!apolloMetadataClient) {
|
||||
throw new Error('ApolloMetadataClient not found');
|
||||
}
|
||||
|
||||
return apolloMetadataClient;
|
||||
};
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { ApolloClient, useMutation } from '@apollo/client';
|
||||
import { useMutation } from '@apollo/client';
|
||||
import { getOperationName } from '@apollo/client/utilities';
|
||||
|
||||
import {
|
||||
@ -19,7 +19,7 @@ export const useCreateOneFieldMetadataItem = () => {
|
||||
CreateOneFieldMetadataItemMutation,
|
||||
CreateOneFieldMetadataItemMutationVariables
|
||||
>(CREATE_ONE_FIELD_METADATA_ITEM, {
|
||||
client: apolloMetadataClient ?? ({} as ApolloClient<any>),
|
||||
client: apolloMetadataClient,
|
||||
});
|
||||
|
||||
const createOneFieldMetadataItem = async (input: CreateFieldInput) => {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { ApolloClient, useApolloClient, useMutation } from '@apollo/client';
|
||||
import { useApolloClient, useMutation } from '@apollo/client';
|
||||
import { getOperationName } from '@apollo/client/utilities';
|
||||
|
||||
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
|
||||
@ -26,7 +26,7 @@ export const useCreateOneObjectMetadataItem = () => {
|
||||
CreateOneObjectMetadataItemMutation,
|
||||
CreateOneObjectMetadataItemMutationVariables
|
||||
>(CREATE_ONE_OBJECT_METADATA_ITEM, {
|
||||
client: apolloMetadataClient ?? ({} as ApolloClient<any>),
|
||||
client: apolloMetadataClient,
|
||||
});
|
||||
|
||||
const createOneObjectMetadataItem = async (input: CreateObjectInput) => {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { ApolloClient, useMutation } from '@apollo/client';
|
||||
import { useMutation } from '@apollo/client';
|
||||
import { getOperationName } from '@apollo/client/utilities';
|
||||
|
||||
import {
|
||||
@ -22,7 +22,7 @@ export const useCreateOneRelationMetadataItem = () => {
|
||||
CreateOneRelationMetadataMutation,
|
||||
CreateOneRelationMetadataMutationVariables
|
||||
>(CREATE_ONE_RELATION_METADATA_ITEM, {
|
||||
client: apolloMetadataClient ?? ({} as ApolloClient<any>),
|
||||
client: apolloMetadataClient,
|
||||
});
|
||||
|
||||
const createOneRelationMetadataItem = async (
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { ApolloClient, useMutation } from '@apollo/client';
|
||||
import { useMutation } from '@apollo/client';
|
||||
import { getOperationName } from '@apollo/client/utilities';
|
||||
|
||||
import {
|
||||
@ -18,7 +18,7 @@ export const useDeleteOneFieldMetadataItem = () => {
|
||||
DeleteOneFieldMetadataItemMutation,
|
||||
DeleteOneFieldMetadataItemMutationVariables
|
||||
>(DELETE_ONE_FIELD_METADATA_ITEM, {
|
||||
client: apolloMetadataClient ?? ({} as ApolloClient<any>),
|
||||
client: apolloMetadataClient,
|
||||
});
|
||||
|
||||
const deleteOneFieldMetadataItem = async (
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { ApolloClient, useMutation } from '@apollo/client';
|
||||
import { useMutation } from '@apollo/client';
|
||||
import { getOperationName } from '@apollo/client/utilities';
|
||||
|
||||
import {
|
||||
@ -18,7 +18,7 @@ export const useDeleteOneObjectMetadataItem = () => {
|
||||
DeleteOneObjectMetadataItemMutation,
|
||||
DeleteOneObjectMetadataItemMutationVariables
|
||||
>(DELETE_ONE_OBJECT_METADATA_ITEM, {
|
||||
client: apolloMetadataClient ?? ({} as ApolloClient<any>),
|
||||
client: apolloMetadataClient,
|
||||
});
|
||||
|
||||
const deleteOneObjectMetadataItem = async (
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { ApolloClient, useMutation } from '@apollo/client';
|
||||
import { useMutation } from '@apollo/client';
|
||||
import { getOperationName } from '@apollo/client/utilities';
|
||||
|
||||
import { DELETE_ONE_RELATION_METADATA_ITEM } from '@/object-metadata/graphql/mutations';
|
||||
@ -18,7 +18,7 @@ export const useDeleteOneRelationMetadataItem = () => {
|
||||
DeleteOneRelationMetadataItemMutation,
|
||||
DeleteOneRelationMetadataItemMutationVariables
|
||||
>(DELETE_ONE_RELATION_METADATA_ITEM, {
|
||||
client: apolloMetadataClient ?? ({} as ApolloClient<any>),
|
||||
client: apolloMetadataClient,
|
||||
});
|
||||
|
||||
const deleteOneRelationMetadataItem = async (
|
||||
|
||||
Reference in New Issue
Block a user