Skip to content

Commit

Permalink
prettier 3.5.0 has differing opinions about parentheses but now vscod…
Browse files Browse the repository at this point in the history
…e is in agreement
  • Loading branch information
codebykat committed Feb 12, 2025
1 parent 08aec6a commit c6f89bc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions lib/app-layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ const mapStateToProps: S.MapState<StateProps> = (state) => ({
isSmallScreen: selectors.isSmallScreen(state),
openedRevision:
state.ui.openedRevision?.[0] === state.ui.openedNote
? state.data.noteRevisions
? (state.data.noteRevisions
.get(state.ui.openedNote)
?.get(state.ui.openedRevision?.[1]) ?? null
?.get(state.ui.openedRevision?.[1]) ?? null)
: null,
openedNote: state.ui.openedNote,
showNoteList: state.ui.showNoteList,
Expand Down
2 changes: 1 addition & 1 deletion lib/note-toolbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const mapStateToProps: S.MapState<StateProps> = ({
ui: { editMode, openedNote },
simperium: { connectionStatus },
}) => {
const note = openedNote ? data.notes.get(openedNote) ?? null : null;
const note = openedNote ? (data.notes.get(openedNote) ?? null) : null;

return {
editMode,
Expand Down
2 changes: 1 addition & 1 deletion lib/revision-selector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const mapStateToProps: S.MapState<StateProps> = (state) => {
const noteId = state.ui.openedNote;
const openedRevision =
state.ui.openedRevision?.[0] === state.ui.openedNote
? state.ui.openedRevision?.[1] ?? null
? (state.ui.openedRevision?.[1] ?? null)
: null;
const restoreDeletedTags = state.ui.restoreDeletedTags;

Expand Down
4 changes: 2 additions & 2 deletions lib/search/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ export const middleware: S.Middleware = (store) => {
const noteAt = filteredNotes.findIndex((noteId) => noteId === openedNote);
const nextNoteToOpen =
noteAt === -1
? filteredNotes[0] ?? null
: filteredNotes[noteAt + 1] ?? filteredNotes[noteAt - 1] ?? null;
? (filteredNotes[0] ?? null)
: (filteredNotes[noteAt + 1] ?? filteredNotes[noteAt - 1] ?? null);

return {
...action,
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"mini-css-extract-plugin": "2.9.0",
"postcss": "8.4.38",
"postcss-loader": "8.1.1",
"prettier": "3.3.2",
"prettier": "3.5.0",
"pretty-quick": "4.0.0",
"react-onclickoutside": "6.13.0",
"react-test-renderer": "17.0.2",
Expand Down

0 comments on commit c6f89bc

Please sign in to comment.