feature/IO-3499-React-19 checkpoint

This commit is contained in:
Dave
2026-01-20 16:25:36 -05:00
parent d7e3b52dc6
commit 4c8783a2c2

View File

@@ -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),