Fix random undocumented bug in kanban utils.
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -77,8 +77,9 @@ export const createBoardData = (AllStatuses, Jobs, filter) => {
|
|||||||
|
|
||||||
Object.keys(DataGroupedByStatus).map((statusGroupKey) => {
|
Object.keys(DataGroupedByStatus).map((statusGroupKey) => {
|
||||||
try {
|
try {
|
||||||
boardLanes.columns.find((l) => l.id === statusGroupKey).cards =
|
const needle = boardLanes.columns.find((l) => l.id === statusGroupKey);
|
||||||
sortByParentId(DataGroupedByStatus[statusGroupKey]);
|
if (!needle?.cards) return null;
|
||||||
|
needle.cards = sortByParentId(DataGroupedByStatus[statusGroupKey]);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("Error while creating board card", error);
|
console.log("Error while creating board card", error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user