Client Table update
* Columns are now specified using the ant design columns property instead of being Table.Column components. This should make this WoW a bit more sense, we're not pretending to be components anymore. column.tsx now only returns objects, not nodes. * Added filament/spool collapsing as a useTable queryOptions so that the output object is directly the one we want, which will make the types play better together. * Added a more unified record action system. This enables us to add actions to column rightclick/long press, which is better UX for mobile devices. * Actions column is now hidden on smaller screens thanks to the above bullet.
This commit is contained in:
@@ -28,3 +28,10 @@ export function getFiltersForField<Obj, Field extends keyof Obj>(
|
||||
});
|
||||
return filterValues;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function that returns an array with all undefined values removed.
|
||||
*/
|
||||
export function removeUndefined<T>(array: (T | undefined)[]): T[] {
|
||||
return array.filter((value) => value !== undefined) as T[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user