Fix drag and drop for opportunity board (#503)

This commit is contained in:
Emilien Chauvet 2023-07-03 16:40:51 -07:00 committed by GitHub
parent db5dfb3bdf
commit 580e6024d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}, [