Skip to content

Commit

Permalink
Merge pull request #377 from bartoval/error_console_test
Browse files Browse the repository at this point in the history
Error console test
  • Loading branch information
bartoval authored Feb 12, 2024
2 parents 640e619 + e9d1af3 commit cc33451
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export const UserDropdown = function () {

const { data: user } = useQuery({
queryKey: ['QueriesGetUser'],
queryFn: () => RESTApi.fetchUser()
queryFn: () => RESTApi.fetchUser(),
throwOnError: false
});

const { refetch: refetchLogout, isSuccess: isLogoutSuccess } = useQuery({
Expand Down
2 changes: 1 addition & 1 deletion src/pages/shared/Errors/Console/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const ErrorConsole: FC<ErrorConsoleProps> = function ({ error, resetErrorBoundar
<Divider />

<ClipboardCopy isExpanded hoverTip="Copy" clickTip="Copied" variant={ClipboardCopyVariant.expansion}>
{error.stack}
{error.stack || ''}
</ClipboardCopy>
</TextContent>
</PageSection>
Expand Down

0 comments on commit cc33451

Please sign in to comment.