Fix type errors on cookie banner pages
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -90,6 +90,7 @@ export default function CookieBannerCookiesPage({
|
|||||||
<CategoryDialog
|
<CategoryDialog
|
||||||
cookieBannerId={banner.id}
|
cookieBannerId={banner.id}
|
||||||
connectionId={connectionId}
|
connectionId={connectionId}
|
||||||
|
nextRank={sorted.length > 0 ? sorted[sorted.length - 1].rank + 1 : 0}
|
||||||
onOpenChange={setShowCreateDialog}
|
onOpenChange={setShowCreateDialog}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export const cookieBannersOverviewPageQuery = graphql`
|
|||||||
organization: node(id: $organizationId) {
|
organization: node(id: $organizationId) {
|
||||||
__typename
|
__typename
|
||||||
... on Organization {
|
... on Organization {
|
||||||
cookieBanners(first: 50, orderBy: { field: CREATED_AT, direction: DESC }) {
|
cookieBanners(first: 50, orderBy: { field: CREATED_AT, direction: DESC }) @required(action: THROW) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
|
|||||||
Reference in New Issue
Block a user