Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions segments/bff.segment.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
"./domain/creator/register/feature": { "default": { "access": "private" }},
"./domain/creator/updateFullName/feature": { "default": { "access": "public" }},
"./domain/creator/updateNickname/feature": { "default": { "access": "public" }},
"./domain/creator/updateFollowerCount/feature": { "default": { "access": "private" }},
"./domain/creator/updateFollowingCount/feature": { "default": { "access": "private" }},
"./domain/creator/updatePostCount/feature": { "default": { "access": "private" }},

"./domain/image/create/feature": { "default": { "access": "private" } },
"./domain/image/download/feature": { "default": { "access": "private" } },
Expand All @@ -40,7 +37,6 @@
"./domain/reaction/getByPostAggregated/feature": { "default": { "access": "public" } },
"./domain/reaction/remove/feature": { "default": { "access": "public" } },
"./domain/reaction/toggleRating/feature": { "default": { "access": "public" } },
"./domain/reaction/updateRatingCount/feature": { "default": { "access": "private" }},

"./domain/relation/aggregate/feature": { "default": { "access": "private" } },
"./domain/relation/exploreAggregated/feature": { "default": { "access": "public" } },
Expand Down
5 changes: 4 additions & 1 deletion src/webui/features/ErrorHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ type Props = {

export default function Feature({ error }: Props)
{
const isUnauthorized = error?.constructor?.name === 'Unauthorized';
const isUnauthorized = error?.constructor?.name === 'Unauthorized'
|| error === 'Invalid authorization type'
|| error === 'Invalid authorization key'
|| error === 'Session expired';

const ErrorPanel = <Panel type='normal'>
<Title>Oops...</Title>
Expand Down
1 change: 1 addition & 0 deletions src/webui/hooks/usePagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export function usePagination<T>(getData: GetData<T>, limit: number, deps: Depen
resetData();
loadData();

// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

useEffect(resetData, [resetData, limit, ...deps]);
Expand Down