mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-19 07:30:54 +00:00
8 lines
319 B
TypeScript
8 lines
319 B
TypeScript
![]() |
/**
|
||
|
* For each given query param, creates an object with `refreshModel` set to true
|
||
|
* @param {Array<string>} [params=[]]
|
||
|
* @returns {{}}
|
||
|
*/
|
||
|
export const refreshModelQueryParams = (params: Array<string> = []): {} =>
|
||
|
params.reduce((queryParams, param) => ({ ...queryParams, [param]: { refreshModel: true } }), {});
|