Skip to content

Commit 5c35832

Browse files
committed
Merge branch 'newDoc' of https://github.com/terminusdb/terminusdb-dashboard into newDoc
2 parents 44e6ebd + 04ea88d commit 5c35832

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/tdb-dashboard/src/pages/DocumentsGraphqlList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ export const DocumentsGraphqlList = ({documentTablesConfig}) => {
6969
handleClose={()=>setShowDeleteModal(false)}
7070
/> }
7171
{error && <ErrorMessageReport error={error} setError={setError}/>}
72-
<ListDocumentsComponent type={type}
72+
{!showDeleteModal && <ListDocumentsComponent type={type}
7373
gqlQuery={query}
7474
apolloClient={apolloClient}
7575
tablesConfig={documentTablesConfig}
7676
onViewButtonClick={onViewClick}
7777
onEditButtonClick={onEditClick}
7878
onRowClick={onViewClick}
7979
onDeleteButtonClick={deleteDocumentHandler}
80-
onCreateButtonClick={handleCreate}/>
80+
onCreateButtonClick={handleCreate}/>}
8181
</React.Fragment>
8282
}

packages/tdb-documents-ui-template/src/components/DocumentsGraphqlTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const DocumentsGraphqlTable = ({gqlQuery,apolloClient,tableConfig, type,
6060
evt.stopPropagation()
6161
if (onDeleteButtonClick) {
6262
const rowTmp = row && row.original ? {label:row.original.name, id:row.original.fullID}: {}
63-
onDeleteButtonClick(rowTmp)
63+
onDeleteButtonClick(rowTmp)
6464
}
6565
}
6666

0 commit comments

Comments
 (0)