Fixed: warehouse null check
This commit is contained in:
@@ -48,7 +48,8 @@ export default function TileBasic({ tiles }) {
|
||||
<>
|
||||
<MDBox px={2} py={3}>
|
||||
<Grid container spacing={2}>
|
||||
{tiles.map((items) => (
|
||||
{tiles &&
|
||||
tiles.map((items) => (
|
||||
<>
|
||||
<Grid item xs={12} sm={6} md={tiles.length > 4 ? 4 : 6}>
|
||||
<Link to={items.path}>
|
||||
|
||||
@@ -16,7 +16,7 @@ export default WarehouseActions;
|
||||
|
||||
/* ------------- Initial State ------------- */
|
||||
export const INITIAL_STATE = Immutable({
|
||||
warehouseDetail: null,
|
||||
warehouseDetail: [],
|
||||
error: {}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user