2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 03:26:45 +00:00

Handle case of null stock location (#9183) (#9187)

(cherry picked from commit 94c2157d3c9af611b0d6e4668bb5eb2a51a01960)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot] 2025-02-26 09:31:58 +11:00 committed by GitHub
parent 3625b8f14c
commit 4c9f042f8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -365,7 +365,7 @@ function StockItemDefaultMove({
/>
</Flex>
<Flex direction='column' gap='sm' align='center'>
<Text>{stockItem.location_detail.pathstring}</Text>
<Text>{stockItem.location_detail?.pathstring ?? '-'}</Text>
<InvenTreeIcon icon='arrow_down' />
<Suspense fallback={<Skeleton width='150px' />}>
<Text>{data?.pathstring}</Text>