Skip to content

Commit

Permalink
Add data to cell renderer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Nov 30, 2023
1 parent 130e8cf commit 6255704
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/security/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
3 changes: 1 addition & 2 deletions src/pages/maps/@id/edit/edit-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
),
Expand Down

0 comments on commit 6255704

Please sign in to comment.