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

Handle case of null stock location (#9183)

This commit is contained in:
Oliver 2025-02-26 09:26:11 +11:00 committed by GitHub
parent 1a4a2b21d7
commit 94c2157d3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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