feature/IO-3499-React-19: Fix issue skylar found
This commit is contained in:
@@ -24,7 +24,7 @@ export default function ShopEmployeeAddVacation({ employee }) {
|
|||||||
let result;
|
let result;
|
||||||
|
|
||||||
result = await insertVacation({
|
result = await insertVacation({
|
||||||
variables: { vacation: { ...values, employeeid: employee.id } },
|
variables: { vacation: { ...values, employeeid: employee?.id } },
|
||||||
update(cache, { data }) {
|
update(cache, { data }) {
|
||||||
cache.modify({
|
cache.modify({
|
||||||
id: cache.identify({ id: employee.id, __typename: "employees" }),
|
id: cache.identify({ id: employee.id, __typename: "employees" }),
|
||||||
|
|||||||
Reference in New Issue
Block a user