mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-29 15:25:45 +03:00
Fix drag and drop for opportunity board (#503)
This commit is contained in:
parent
db5dfb3bdf
commit
580e6024d0
@ -77,8 +77,8 @@ export function Board({
|
||||
const [isInitialBoardLoaded, setIsInitialBoardLoaded] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (isInitialBoardLoaded) return;
|
||||
setBoard(initialBoard);
|
||||
if (Object.keys(initialItems).length === 0 || isInitialBoardLoaded) return;
|
||||
setBoardItems(initialItems);
|
||||
setIsInitialBoardLoaded(true);
|
||||
}, [
|
||||
|
Loading…
Reference in New Issue
Block a user