feat(FE): axios helper func
This commit is contained in:
parent
50a8497bf4
commit
bba0f09389
4 changed files with 33 additions and 58 deletions
5
resources/js/helpers/AxiosHelper.ts
Normal file
5
resources/js/helpers/AxiosHelper.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
export function cleanOptions(options: Object): Object {
|
||||
return Object.fromEntries(
|
||||
Object.entries(options).filter(([_, value]) => value !== undefined && value !== null)
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue