Skip to content

Commit

Permalink
Change default view to List from Grid (#2119)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwallacespeckle authored Mar 13, 2024
1 parent ad04d34 commit 0d3133d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/frontend-2/lib/projects/composables/projectPages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export function useProjectPageItemViewType(contentType: string) {
const viewTypeCookie = useSynchronizedCookie(`projectPage-${contentType}-viewType`)
const gridOrList = computed({
get: () =>
viewTypeCookie.value === GridListToggleValue.List
? GridListToggleValue.List
: GridListToggleValue.Grid,
viewTypeCookie.value === GridListToggleValue.Grid
? GridListToggleValue.Grid
: GridListToggleValue.List,
set: (newVal) => {
viewTypeCookie.value = newVal
}
Expand Down

0 comments on commit 0d3133d

Please sign in to comment.