Fix fields cannot be added on opportunity board if no field are present
This commit is contained in:
@ -153,7 +153,7 @@ export const useRecordIndexOptionsForBoard = ({
|
|||||||
...recordIndexFieldDefinitions,
|
...recordIndexFieldDefinitions,
|
||||||
{
|
{
|
||||||
...correspondingFieldDefinition,
|
...correspondingFieldDefinition,
|
||||||
position: lastVisibleBoardField.position + 1,
|
position: (lastVisibleBoardField?.position || 0) + 1,
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user