submit 'type' fixes
This commit is contained in:
parent
667ecbf439
commit
e2767a922c
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ function useOptions(path: string) {
|
|||
const group = params.get("group") || "";
|
||||
const field = params.get("field") || "";
|
||||
|
||||
const fieldsUrl = `${API}/fields/${encodeURIComponent(target)}?fields=collection,field,meta`;
|
||||
const fieldsUrl = `${API}/fields/${encodeURIComponent(target)}`;
|
||||
const metaRes = await fetch(fieldsUrl, { cache: "no-store", credentials: "include" });
|
||||
if (!metaRes.ok) throw new Error(`Directus ${metaRes.status} fetching ${fieldsUrl}`);
|
||||
const metaJson = await metaRes.json();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue