Fix type errors on cookie banner pages

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-20 18:07:30 +04:00
parent 7f852aebc5
commit 16f4fcd9da
2 changed files with 2 additions and 1 deletions

View File

@@ -90,6 +90,7 @@ export default function CookieBannerCookiesPage({
<CategoryDialog
cookieBannerId={banner.id}
connectionId={connectionId}
nextRank={sorted.length > 0 ? sorted[sorted.length - 1].rank + 1 : 0}
onOpenChange={setShowCreateDialog}
/>
)}

View File

@@ -29,7 +29,7 @@ export const cookieBannersOverviewPageQuery = graphql`
organization: node(id: $organizationId) {
__typename
... on Organization {
cookieBanners(first: 50, orderBy: { field: CREATED_AT, direction: DESC }) {
cookieBanners(first: 50, orderBy: { field: CREATED_AT, direction: DESC }) @required(action: THROW) {
edges {
node {
id