Skip to content

Commit aa6da02

Browse files
authored
Merge pull request #101 from CivicDataLab/100-fix-publish-page
Fix Publish Page bugs
2 parents ea99b0a + 6d3ce8f commit aa6da02

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • app/[locale]/dashboard/organization/[organizationId]/dataset/[id]/edit/publish

app/[locale]/dashboard/organization/[organizationId]/dataset/[id]/edit/publish/page.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ const generateColumnData = (name: any) => {
100100
accessorKey: 'dialog',
101101
header: `${name === 'Access Type' ? 'Resources' : 'Fields'}`,
102102
cell: ({ row }: any) => {
103-
console.log(row.original.dialog.length);
104-
105103
return (
106104
<>
107105
<Dialog>
@@ -199,7 +197,7 @@ const Page = () => {
199197
name: 'Access Type',
200198
data: data?.datasets[0]?.accessModels,
201199
error:
202-
data && data?.datasets[0]?.resources.length === 0
200+
data && data?.datasets[0]?.accessModels.length === 0
203201
? 'No Access Type found. Please add to continue.'
204202
: '',
205203
errorType: 'critical',
@@ -235,8 +233,6 @@ const Page = () => {
235233
}
236234
);
237235

238-
console.log(Summary);
239-
240236
return (
241237
<>
242238
<div className=" w-full py-6">
@@ -354,7 +350,7 @@ const Page = () => {
354350
<Button
355351
className="m-auto w-fit"
356352
disabled={
357-
!data?.datasets[0]?.resources.length &&
353+
!data?.datasets[0]?.resources.length ||
358354
!data?.datasets[0]?.accessModels.length
359355
}
360356
onClick={() => mutate()}

0 commit comments

Comments
 (0)