Better handle falsy values in Select & GraphQL cells

Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
Émile Ré
2025-12-02 10:47:40 +04:00
parent 57e267afe0
commit 519dd716b3
5 changed files with 17 additions and 13 deletions

View File

@@ -1,9 +1,9 @@
import type { GraphQLTaggedNode } from "relay-runtime";
import { useMutation } from "react-relay";
export type MutationFieldUpdate<T> = (
field: keyof T,
value: T[typeof field],
export type MutationFieldUpdate<T extends Record<string, unknown>, TKey extends keyof T> = (
field: TKey,
value: T[TKey],
) => void;
/**