ok
This commit is contained in:
@@ -37,8 +37,7 @@ const Dashboard = () => {
|
|||||||
try {
|
try {
|
||||||
const response = await fetch('https://bot.kediritechnopark.com/webhook/master-agent/dashboard');
|
const response = await fetch('https://bot.kediritechnopark.com/webhook/master-agent/dashboard');
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
setDiscussedTopics(data[0].result.topics)
|
setDiscussedTopics(data[0]?.result?.topics)
|
||||||
console.log(data[0].result.topics[0].topic)
|
|
||||||
|
|
||||||
const graphObj = data[0].result.graph;
|
const graphObj = data[0].result.graph;
|
||||||
const rawDataArray = Object.entries(graphObj).map(([hour, sesi]) => ({
|
const rawDataArray = Object.entries(graphObj).map(([hour, sesi]) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user