File tree Expand file tree Collapse file tree
app/[locale]/dashboard/organization/[organizationId]/dataset/[id]/edit/publish Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) }
You can’t perform that action at this time.
0 commit comments