Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix map key

dominik-zeglen95aa3159cdf9
diff --git a/saleor/static/dashboard-next/orders/components/OrderDetailsPage/OrderDetailsPage.tsx b/saleor/static/dashboard-next/orders/components/OrderDetailsPage/OrderDetailsPage.tsx
index 45ab9df596..29afb842c8 100644
--- a/saleor/static/dashboard-next/orders/components/OrderDetailsPage/OrderDetailsPage.tsx
+++ b/saleor/static/dashboard-next/orders/components/OrderDetailsPage/OrderDetailsPage.tsx
@@ -126,7 +126,7 @@ const OrderDetailsPage = decorate<OrderDetailsPageProps>(
{renderCollection(
maybe(() => order.fulfillments),
(fulfillment, fulfillmentIndex) => (
- <React.Fragment key={fulfillment.id}>
+ <React.Fragment key={maybe(() => fulfillment.id, "loading")}>
{!(unfulfilled.length === 0 && fulfillmentIndex === 0) && (
<CardSpacer />
)}
diff --git a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
index d54c9629f9..9386bbac65 100644
--- a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
+++ b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
@@ -21841,7 +21841,7 @@ exports[`Storyshots Views / Orders / Order details loading 1`] = `
class="Component-md-id"
>
<div
- class="Component-root-id OrderDetailsPageComponent-header-id"
+ class="Component-root-id Component-header-id"
>
<button
class="MuiButtonBase-root-id MuiIconButton-root-id MuiIconButton-colorInherit-id Component-menuButton-id"
@@ -21882,7 +21882,7 @@ exports[`Storyshots Views / Orders / Order details loading 1`] = `
class="Component-action-id"
>
<div
- class="OrderDetailsPageComponent-menu-id"
+ class="Component-menu-id"
>
<button
aria-haspopup="true"
@@ -21915,7 +21915,7 @@ exports[`Storyshots Views / Orders / Order details loading 1`] = `
</div>
</div>
<div
- class="OrderDetailsPageComponent-date-id"
+ class="Component-date-id"
>
<span
class="Skeleton-skeleton-id"
@@ -21925,7 +21925,7 @@ exports[`Storyshots Views / Orders / Order details loading 1`] = `
</span>
</div>
<div
- class="OrderDetailsPageComponent-root-id"
+ class="Component-root-id"
>
<div>
<div
@@ -22270,8 +22270,9 @@ exports[`Storyshots Views / Orders / Order details loading 1`] = `
class="OrderCustomer-sectionHeaderToolbar-id"
>
<button
- class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
- tabindex="0"
+ class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id MuiButton-disabled-id"
+ disabled=""
+ tabindex="-1"
type="button"
>
<span
@@ -22279,9 +22280,6 @@ exports[`Storyshots Views / Orders / Order details loading 1`] = `
>
Edit
</span>
- <span
- class="MuiTouchRipple-root-id"
- />
</button>
</div>
</div>
@@ -22309,8 +22307,9 @@ exports[`Storyshots Views / Orders / Order details loading 1`] = `
class="OrderCustomer-sectionHeaderToolbar-id"
>
<button
- class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
- tabindex="0"
+ class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id MuiButton-disabled-id"
+ disabled=""
+ tabindex="-1"
type="button"
>
<span
@@ -22318,9 +22317,6 @@ exports[`Storyshots Views / Orders / Order details loading 1`] = `
>
Edit
</span>
- <span
- class="MuiTouchRipple-root-id"
- />
</button>
</div>
</div>