Skip to content

Commit

Permalink
fix expand/collapse buttons for highlights in the dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed May 11, 2024
1 parent 4e518ad commit 8cb43f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/dashboard-refactor/search-results/index.tsx
Expand Up @@ -581,7 +581,8 @@ export default class SearchResultsContainer extends React.Component<
day: number,
{ onShareBtnClick }: PageInteractionProps,
) {
const shouldShow = areNotesShown || noteIds[notesType]?.length > 0
const shouldShow =
areNotesShown === true && noteIds[notesType]?.length > 0
if (!shouldShow) {
return null
}
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard-refactor/search-results/util.ts
Expand Up @@ -109,7 +109,7 @@ export const getInitialPageResultState = (
pageResultId,
notesType: 'user',
activePage: undefined,
areNotesShown: false,
areNotesShown: true,
isTagPickerShown: false,
isShareMenuShown: false,
isCopyPasterShown: false,
Expand Down

0 comments on commit 8cb43f3

Please sign in to comment.