Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
paulthatjazz committed Oct 18, 2023
1 parent d4b1379 commit de7ef2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/javascript/projects/analysis_panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ export const AnalysisPanel = ({ selectedArea, setShowAP, selectedLayer, layerSta
const [chartType, setChartType] = React.useState<ChartType>()
const [chartData, setChartData] = React.useState<ChartData>()

console.log(chartType)

let errorMsg: string = ""
let showChart: boolean = false
let data: BooleanTileGrid | NumericTileGrid | CategoricalTileGrid | null = null
Expand All @@ -138,6 +140,8 @@ export const AnalysisPanel = ({ selectedArea, setShowAP, selectedLayer, layerSta

const dataType = typeMap[data.constructor.name]

console.log(dataType)

if (dataSourceType !== dataType || chartType === undefined) {
dataSourceType = dataType
const charts = ChartTypeArray.get(dataType)
Expand Down

0 comments on commit de7ef2e

Please sign in to comment.