From 15aa99209c8b363a8e16c267ca424a2d4d1586fd Mon Sep 17 00:00:00 2001 From: Michael Sharpe Date: Tue, 8 Mar 2022 09:36:54 -0800 Subject: [PATCH 1/2] Uncomment in .env --- client/.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/.env b/client/.env index 57fe7afcd..1f93d77af 100644 --- a/client/.env +++ b/client/.env @@ -6,8 +6,8 @@ REACT_APP_SITE_ROOT_URL_PROD=https://thoth.latitude.io REACT_APP_SITE_ROOT_URL=http://localhost:3001 REACT_APP_LAPI_ROOT_URL=http://localhost:8000 -#REACT_APP_LAPI_ROOT_URL_PROD=https://api.latitude.io -#REACT_APP_SITE_STAGING=https://62264f21c3a9860ad1e5bdd3--optimistic-turing-def916.netlify.app/ +REACT_APP_LAPI_ROOT_URL_PROD=https://api.latitude.io +REACT_APP_SITE_STAGING=https://62264f21c3a9860ad1e5bdd3--optimistic-turing-def916.netlify.app/ # Oauth Client Id REACT_APP_OAUTH_CLIENT_ID=a6b51c87-7565-42ab-a4b0-38a07f3b6c56 \ No newline at end of file From 1bda47f5ec75750559a36e4ca3ecf5dfebc32481 Mon Sep 17 00:00:00 2001 From: Michael Sharpe Date: Tue, 8 Mar 2022 09:37:14 -0800 Subject: [PATCH 2/2] Fix onData bug in inspector --- core/src/plugins/inspectorPlugin/Inspector.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/plugins/inspectorPlugin/Inspector.ts b/core/src/plugins/inspectorPlugin/Inspector.ts index 35dd6932b..5cbe22c99 100644 --- a/core/src/plugins/inspectorPlugin/Inspector.ts +++ b/core/src/plugins/inspectorPlugin/Inspector.ts @@ -18,7 +18,6 @@ type DataControlData = Record export class Inspector { // Stub of function. Can be a nodes catch all onData - onData = Function cache: Record = {} node: ThothNode component: ThothComponent @@ -175,6 +174,7 @@ export class Inspector { } handleData(update: Record) { + console.log('Handling data!', update) // store all data controls inside the nodes data // WATCH in case our graphs start getting quite large. if (update.dataControls) this.cacheControls(update.dataControls) @@ -182,7 +182,8 @@ export class Inspector { const { data } = update // Send data to a possibel node global handler - this.onData(data) + // Turned off until the pattern might be useful + // this.onData(data) // go over each data control const dataControlArray = Array.from(this.dataControls)