1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

Minor fix, when testing the filtering the data section noticed some stuff didn't work, like filtering by just a number (which is actually text) we fixed this previously but had to version the API to fix it, builder needed to send up the API version it desires to use.

This commit is contained in:
mike12345567 2022-01-20 18:06:14 +00:00
parent 8d95d9b603
commit 23a9fc709f

View file

@ -6,6 +6,7 @@ const apiCall =
method =>
async (url, body, headers = { "Content-Type": "application/json" }) => {
headers["x-budibase-app-id"] = svelteGet(store).appId
headers["x-budibase-api-version"] = "1"
const json = headers["Content-Type"] === "application/json"
const resp = await fetch(url, {
method: method,