2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

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

(cherry picked from commit 94c2157d3c)

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

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>