Skip to content

Commit

Permalink
fix list.ui.hide* functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Jul 17, 2024
1 parent 4e57d88 commit 73d7206
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/core/src/lib/create-admin-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,8 @@ export function createAdminMeta (
// TODO: probably remove this
itemQueryName: listKey,
listQueryName: list.graphql.namePlural, // TODO: remove
hideCreate: normalizeMaybeSessionFunction(
list.graphql.isEnabled.create ? listConfig.ui?.hideCreate ?? false : false
),
hideDelete: normalizeMaybeSessionFunction(
list.graphql.isEnabled.delete ? listConfig.ui?.hideDelete ?? false : false
),
hideCreate: normalizeMaybeSessionFunction(listConfig.ui?.hideCreate ?? !list.graphql.isEnabled.create),
hideDelete: normalizeMaybeSessionFunction(listConfig.ui?.hideDelete ?? !list.graphql.isEnabled.delete),
isHidden: normalizeMaybeSessionFunction(listConfig.ui?.isHidden ?? false),
}

Expand Down

0 comments on commit 73d7206

Please sign in to comment.