diff --git a/packages/builder/src/builderStore/api.js b/packages/builder/src/builderStore/api.js index 46345fd213..820c3d5fa4 100644 --- a/packages/builder/src/builderStore/api.js +++ b/packages/builder/src/builderStore/api.js @@ -1,8 +1,11 @@ const apiCall = method => async (url, body) => { + const jwt = localStorage.getItem("budibase:token"); + const response = await fetch(url, { method: method, headers: { "Content-Type": "application/json", + "Authorization": `Bearer ${jwt}` }, body: body && JSON.stringify(body), }) diff --git a/packages/builder/src/builderStore/store/index.js b/packages/builder/src/builderStore/store/index.js index 9d06ca9010..5bcfcab1fa 100644 --- a/packages/builder/src/builderStore/store/index.js +++ b/packages/builder/src/builderStore/store/index.js @@ -167,7 +167,6 @@ const _saveScreenApi = (screen, s) => const createScreen = store => (screenName, route, layoutComponentName) => { store.update(state => { - console.log(layoutComponentName); const rootComponent = state.components[layoutComponentName] const newScreen = { diff --git a/packages/builder/src/components/database/ModelDataTable/ModelDataTable.svelte b/packages/builder/src/components/database/ModelDataTable/ModelDataTable.svelte index d69ce61437..da46a648f7 100644 --- a/packages/builder/src/components/database/ModelDataTable/ModelDataTable.svelte +++ b/packages/builder/src/components/database/ModelDataTable/ModelDataTable.svelte @@ -118,9 +118,6 @@