From 6255704006ae7f7136c59cbefe7cc86c6d4198c4 Mon Sep 17 00:00:00 2001 From: Cannon Lock Date: Thu, 30 Nov 2023 10:12:06 -0600 Subject: [PATCH] Add data to cell renderer dependency --- packages/security/src/index.ts | 5 ++++- src/pages/maps/@id/edit/edit-table.ts | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/security/src/index.ts b/packages/security/src/index.ts index 1f5a740c..3d9365b8 100644 --- a/packages/security/src/index.ts +++ b/packages/security/src/index.ts @@ -2,7 +2,10 @@ // Handles fetch requests that require authentication export const secureFetch = async (url, options) => { - console.log(url, options) + options = { + credentials: "include", + ...options, + } const response = await fetch(url, options); diff --git a/src/pages/maps/@id/edit/edit-table.ts b/src/pages/maps/@id/edit/edit-table.ts index 1eb3b385..0d10a3fa 100644 --- a/src/pages/maps/@id/edit/edit-table.ts +++ b/src/pages/maps/@id/edit/edit-table.ts @@ -158,7 +158,6 @@ export default function EditTable({ url }) { if(newData.length == 0){ setError("Warning: No results matched query") } else { - console.log("Data fetched successfully") setError(undefined) setData(newData) @@ -308,7 +307,7 @@ export default function EditTable({ url }) { getSelectionValues(selections), numRows: data.length, // Dumb hacks to try to get the table to rerender on changes - cellRendererDependencies: [editedData], + cellRendererDependencies: [editedData, data], }, columns ),