feat: feature/mvp-sprint-1 Added alias tt for thingtime in commander

This commit is contained in:
Nikolaj Frey 2023-08-15 11:15:19 +10:00
parent 466204e302
commit 83da88ac54

View File

@ -303,6 +303,7 @@ export const Commander = (props) => {
try {
// first try to execute literal javscript
const fn = `() => { return ${commandValue} }`
const tt = thingtime
const evalFn = eval(fn)
const realVal = evalFn()
setThingtime(commandPath, realVal)
@ -353,6 +354,7 @@ export const Commander = (props) => {
commanderActive,
commandIsAction,
commandPath,
thingtime,
commandValue,
escapedCommandValue,
getThingtime,