feature/IO-3499-React-19 checkpoint
This commit is contained in:
@@ -27,7 +27,7 @@ export default function PartsShopInfoContainer() {
|
|||||||
logImEXEvent("parts_shop_update");
|
logImEXEvent("parts_shop_update");
|
||||||
|
|
||||||
updateBodyshop({
|
updateBodyshop({
|
||||||
variables: { id: data.bodyshops[0].id, shop: values }
|
variables: { id: data?.bodyshops?.[0]?.id, shop: values }
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
notification.success({ title: t("bodyshop.successes.save") });
|
notification.success({ title: t("bodyshop.successes.save") });
|
||||||
@@ -38,6 +38,7 @@ export default function PartsShopInfoContainer() {
|
|||||||
title: t("bodyshop.errors.saving", { message: error })
|
title: t("bodyshop.errors.saving", { message: error })
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
setSaveLoading(false);
|
setSaveLoading(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -55,7 +56,7 @@ export default function PartsShopInfoContainer() {
|
|||||||
autoComplete="new-password"
|
autoComplete="new-password"
|
||||||
onFinish={handleFinish}
|
onFinish={handleFinish}
|
||||||
initialValues={
|
initialValues={
|
||||||
data
|
data?.bodyshops?.[0]
|
||||||
? {
|
? {
|
||||||
...data.bodyshops[0],
|
...data.bodyshops[0],
|
||||||
schedule_start_time: dayjs(data.bodyshops[0].schedule_start_time),
|
schedule_start_time: dayjs(data.bodyshops[0].schedule_start_time),
|
||||||
|
|||||||
Reference in New Issue
Block a user