Skip to content

Type Error Cannot read properties of undefined (reading '0'), when trying to set the fullfilment as send. #9114

Description

@techbro76

Bug report

When trying to set the fulfillment as send, type error is thrown in the admin-ui.

TypeError
Cannot read properties of undefined (reading '0')
Call Stack
 undefined
  node_modules_moment_locale_sync_recursive_-cache_admin_src_pages_a_tsx.chunk.js:871:2784
 j
  node_modules_moment_locale_sync_recursive
-_cache_admin_src_pages_a_tsx.chunk.js:871:2751
 le
  main.bundle.js:458:55325
 cz
  main.bundle.js:458:93877
 c7
  main.bundle.js:458:111992
 HTMLUnknownElement.g
  main.bundle.js:446:48300
 Object.r3
  main.bundle.js:446:48625
 nt
  main.bundle.js:446:49578
 eh
  main.bundle.js:458:170988

Describe the bug

While trying to set the fulfillment as send on clients order the admin ui throws a type error.

System information

Medusa version (including plugins):
"@medusajs/admin": "^7.1.16",
"@medusajs/admin-ui": "2.1.16",
"@medusajs/cache-inmemory": "1.8.11",
"@medusajs/cache-redis": "^1.9.2",
"@medusajs/event-bus-local": "1.9.9",
"@medusajs/event-bus-redis": "^1.8.14",
"@medusajs/file-local": "1.0.4",
"@medusajs/medusa": "1.20.9",
Node.js version: v18.20.4
Database:

Steps to reproduce the behavior

  1. Create a new product and go through the checkout and payment flow
  2. Go to the admin-ui
  3. Go to the order you just created
  4. Capture the payment
  5. Create fullfilment for the order
  6. Set the order as send

Expected behavior

The fullfillment would be set as "send"

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions