[WEB-1140] chore: Gantt pragmatic dnd (#4390)

* Gantt Drag and drop migration and enable Dnd in Modules and Cycles Gantt

* fix minor UI and code issues
This commit is contained in:
rahulramesha 2024-05-08 13:38:58 +05:30 committed by GitHub
parent b8f1734738
commit 13e6a67321
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 385 additions and 433 deletions

View file

@ -35,6 +35,7 @@ export const orderModules = (modules: IModule[], orderByKey: TModuleOrderByOptio
if (orderByKey === "created_at") orderedModules = sortBy(modules, [(m) => m.created_at]);
if (orderByKey === "-created_at") orderedModules = sortBy(modules, [(m) => !m.created_at]);
if (orderByKey === "sort_order") orderedModules = sortBy(modules, [(m) => m.sort_order]);
return orderedModules;
};