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.
@@ -107,12 +107,12 @@ export function CommonPayload({ active, onClose, onHandle, schema, title, help,
107
107
  }
108
108
  function FileButton({ path, record, label, icon, filterValues, }) {
109
109
  const { apiUrl } = useMuffinAdminOpts();
110
- let url = `${apiUrl}${path}`;
110
+ let url = `${apiUrl}${path}?f`;
111
111
  if (record)
112
112
  url = url.replace("{id}", record.id);
113
113
  const authorization = requestHeaders["Authorization"];
114
114
  if (authorization)
115
- url += `?t=${authorization}`;
115
+ url += `&t=${authorization}`;
116
116
  if (Object.keys(filterValues).length)
117
117
  url += `&where=${JSON.stringify(filterValues)}`;
118
118
  return (_jsx(Button, { href: url, label: label, component: Link, target: "_blank", children: buildIcon(icon) }));