From 25c79e7a8fabee480e05e9d77220c7930cc6e447 Mon Sep 17 00:00:00 2001 From: signebedi Date: Mon, 11 Nov 2024 13:50:49 -0600 Subject: [PATCH] Fixed: built-in UI endpoint (#374) --- libreforms_fastapi/app/templates/create_form.html.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libreforms_fastapi/app/templates/create_form.html.jinja b/libreforms_fastapi/app/templates/create_form.html.jinja index 45c084e..d05f4dc 100644 --- a/libreforms_fastapi/app/templates/create_form.html.jinja +++ b/libreforms_fastapi/app/templates/create_form.html.jinja @@ -139,7 +139,7 @@ function generateLookup(formName, fieldName, displayFields, queryParams) { function fetchData(formName) { return new Promise((resolve, reject) => { $.ajax({ - url: `/api/form/read_all/${formName}?flatten=true&exclude_journal=true&stringify_output=true&sort_by=%__metadata__last_edited&newest_first=true&return_when_empty=true&${queryParams}`, + url: `/api/form/read_all/${formName}?flatten=true&exclude_journal=true&stringify_output=true&sort_by=%__metadata__last_edited&return_when_empty=true&${queryParams}`, type: "GET", dataType: 'json', beforeSend: function(xhr){xhr.setRequestHeader('X-API-KEY', apiKey);},