muffin-admin 3.18.0 → 3.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -196,11 +196,12 @@ function FileButton({
|
|
|
196
196
|
filterValues?: any
|
|
197
197
|
}) {
|
|
198
198
|
const { apiUrl } = useMuffinAdminOpts()
|
|
199
|
-
let url = `${apiUrl}${path}`
|
|
199
|
+
let url = `${apiUrl}${path}?f`
|
|
200
200
|
if (record) url = url.replace("{id}", record.id as string)
|
|
201
201
|
const authorization = requestHeaders["Authorization"]
|
|
202
|
-
if (authorization) url +=
|
|
202
|
+
if (authorization) url += `&t=${authorization}`
|
|
203
203
|
if (Object.keys(filterValues).length) url += `&where=${JSON.stringify(filterValues)}`
|
|
204
|
+
|
|
204
205
|
return (
|
|
205
206
|
<Button href={url} label={label} component={Link} target="_blank">
|
|
206
207
|
{buildIcon(icon)}
|