Skip to content

Commit

Permalink
fix(flat-pages): pass token into sensitive api (#1904)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious authored Apr 28, 2023
1 parent 96ca7ae commit 98feef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/flat-pages/src/SensitivePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const SensitivePage = observer(function SensitivePage() {
}

setLoading(true);
sp(listSensitive({ from, to: new Date() }))
sp(listSensitive({ from, to: new Date() }, undefined, token))
.then(data => {
const newData = data.reduce((acc, cur) => {
const index = acc.findIndex(e => e.type === cur.type);
Expand All @@ -102,7 +102,7 @@ export const SensitivePage = observer(function SensitivePage() {
.finally(() => {
setLoading(false);
});
}, [defaultSensitiveData, range, sp, t]);
}, [defaultSensitiveData, range, sp, t, token]);

const columns = useMemo<ColumnsType<SensitiveData>>(
() => [
Expand Down

0 comments on commit 98feef0

Please sign in to comment.