feat(FE): axios helper func

This commit is contained in:
Michael 2025-03-31 19:21:10 +02:00
parent 50a8497bf4
commit bba0f09389
4 changed files with 33 additions and 58 deletions

View file

@ -0,0 +1,5 @@
export function cleanOptions(options: Object): Object {
return Object.fromEntries(
Object.entries(options).filter(([_, value]) => value !== undefined && value !== null)
);
}