Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Merge branch 'main' of github.com:latitudegames/thoth
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Mar 8, 2022
2 parents a01c8f4 + 57abca6 commit 3a1df3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/.env
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions core/src/plugins/inspectorPlugin/Inspector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ type DataControlData = Record<string, any>

export class Inspector {
// Stub of function. Can be a nodes catch all onData
onData = Function
cache: Record<string, any> = {}
node: ThothNode
component: ThothComponent<unknown>
Expand Down Expand Up @@ -175,14 +174,16 @@ export class Inspector {
}

handleData(update: Record<string, any>) {
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)

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)
Expand Down

0 comments on commit 3a1df3d

Please sign in to comment.