Skip to content

Commit 868b83e

Browse files
committed
fix group_by
1 parent 1ad5872 commit 868b83e

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

packages/tdb-dashboard/src/components/DataProductDocuments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const DataProductDocuments = () => {
7272

7373
useEffect(() => { // get count of document classes
7474
if(!documentClasses) return
75-
console.log(" i enter here ")
75+
//console.log(" i enter here ")
7676
let q=getCountOfDocumentClass(documentClasses)
7777
setQuery(q)
7878
}, [documentClasses])

packages/tdb-dashboard/src/components/Results.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const Results = ({freewidth, queryObj, woql, changeLimits,setOrder,loadin
2424
const totalRows = queryResult.totalRows
2525

2626
const bindings = (result && result.bindings) ? result.bindings : []
27-
const [graphConfig, setGraphConf]=useState(queryResult.graph || graphViewConfig(bindings))
27+
//const [graphConfig, setGraphConf]=useState(queryResult.graph || graphViewConfig(bindings))
2828

2929
const {
3030
setSelectedDocument,

packages/tdb-dashboard/src/components/ViewPane.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const ViewPane = ({queryObj,setGraphConfig}) => {
3838
}
3939

4040
function handleView () {
41-
console.log("viewConfig", viewConfig)
41+
//console.log("viewConfig", viewConfig)
4242

4343
const graph=TerminusClient.View.graph();
4444
graph.height(800).width("1500")

packages/tdb-react-components/src/table/CellRenderer.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {MdExpandLess, MdExpandMore} from "react-icons/md"
55

66
export const CellRenderer = ({value, column, row, cell, view, args, depth, prefixes})=>{
77
depth = depth || 0
8+
if(!value) return ""
89
if(isEmptyValue(value)){
910
return ""
1011
}
@@ -47,7 +48,7 @@ export const CellRenderer = ({value, column, row, cell, view, args, depth, prefi
4748
args={args}
4849
/>
4950
}
50-
else if(typeof value == "object" && typeof value['@value'] != "undefined"){
51+
else if(typeof value == "object" && typeof value['@value'] !== "undefined"){
5152
if(args && args.types){
5253
return <span>
5354
<LiteralRenderer
@@ -378,7 +379,7 @@ export const HTMLRenderer = ({value, type, column, row, cell, view, args, prefix
378379
function isEmptyValue(val){
379380
if(val == "system:unknown") return true
380381
if(val === "") return true
381-
if(typeof val == "object" && val['@value'] === "") return true
382+
if(val && typeof val == "object" && val['@value'] === "") return true
382383
if(Array.isArray(val) && val.length == 0) return true
383384
if(Array.isArray(val) && val.length == 1 && isEmptyValue(val[1])) return true
384385
return false

0 commit comments

Comments
 (0)