Skip to content

Commit 7b06835

Browse files
Pollepsjoepio
authored andcommitted
Add changelog entry and errorHandler
1 parent 9bc7d67 commit 7b06835

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ This changelog covers all three packages, as they are (for now) updated as a who
44

55
## URELEASED
66

7+
### Atomic Browser
8+
9+
- Improve performance collapsed sidebar items.
10+
711
### @tomic/lib
812

913
- Add `store.getResourceAncestry` method, which returns the ancestry of a resource, including the resource itself.

data-browser/src/helpers/AppSettings.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
} from '@tomic/react';
99
import toast from 'react-hot-toast';
1010
import { SIDEBAR_TOGGLE_WIDTH } from '../components/SideBar';
11+
import { handleError } from './loggingHandlers';
1112

1213
interface ProviderProps {
1314
children: ReactNode;
@@ -49,8 +50,7 @@ export const AppSettingsContextProvider = (
4950
newAgent?.subject && toast.success('Signed in!');
5051
newAgent === undefined && toast.success('Signed out.');
5152
} catch (e) {
52-
toast.error('Agent setting failed: ' + e.message);
53-
console.error(e);
53+
handleError(new Error('Agent setting failed: ' + e.message));
5454
}
5555
},
5656
[setAgent],

pnpm-lock.yaml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)