Merge pull request #1133 from iamanishroy/save-sort-on-update

ROWY-960: Removed not required console logs
This commit is contained in:
Shams
2023-02-24 00:47:31 +01:00
committed by GitHub

View File

@@ -25,12 +25,7 @@ export default function useApplySorts() {
useEffect(() => {
if (applySort && Object.keys(tableSchema).length) {
console.log("useApplySorts");
const userDefaultSort = userSettings.tables?.[tableId]?.sorts || [];
console.log({
userDefaultSort,
tableSchemaSorts: tableSchema.sorts,
});
setTableSorts(
userDefaultSort.length ? userDefaultSort : tableSchema.sorts || []
);