frontend-rw #1

Merged
marcin merged 347 commits from frontend-rw into develop 2024-12-05 15:32:18 -08:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 99c5521e97 - Show all commits

View file

@ -48,9 +48,9 @@ const fetchFilters = () =>
type: FILTERS_FETCH_SUCCESS,
filters: data,
}))
.catch(err => dispatch<FiltersAction>({
.catch(error => dispatch<FiltersAction>({
type: FILTERS_FETCH_FAIL,
err,
error,
skipAlert: true,
}));
};
@ -68,10 +68,10 @@ const fetchFilter = (filterId: string) =>
return data;
})
.catch(err => {
.catch(error => {
dispatch<FiltersAction>({
type: FILTER_FETCH_FAIL,
err,
error,
skipAlert: true,
});
});

View file

@ -95,7 +95,7 @@ const AuthTokenList: React.FC = () => {
const body = tokens ? (
<div className='grid grid-cols-1 gap-4 sm:grid-cols-2'>
{tokens.map((token) => (
<AuthToken key={token.id} token={token} isCurrent={token.id === currentTokenId} />
<AuthToken key={token.id} token={token} isCurrent={String(token.id) === currentTokenId} />
))}
</div>
) : <Spinner />;