Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix selector error
Tomas Valenta02080a3da073
diff --git a/components/DeleteButton.tsx b/components/DeleteButton.tsxindex 4b84fc764..aaa022140 100644--- a/components/DeleteButton.tsx+++ b/components/DeleteButton.tsx@@ -1,5 +1,4 @@import clsx from 'clsx'-import { Trash2, X } from 'lucide-react'import { useState, useEffect, MouseEvent } from 'react'import Text from './Text'diff --git a/components/Editor/Sidebar/Envs.tsx b/components/Editor/Sidebar/Envs.tsxindex 65fccc595..eb031c1f8 100644--- a/components/Editor/Sidebar/Envs.tsx+++ b/components/Editor/Sidebar/Envs.tsx@@ -5,11 +5,11 @@ import Text from 'components/Text'import { useStateStore } from 'state/StoreProvider'function Envs() {- const store = useStateStore()+ const [selector] = useStateStore()- const envs = store.use.envs()- const setEnvs = store.use.setEnvs()- const changeEnv = store.use.changeEnv()+ const envs = selector.use.envs()+ const setEnvs = selector.use.setEnvs()+ const changeEnv = selector.use.changeEnv()const handleEnvKeyChange = useCallback((event: any, idx: number) => {changeEnv({ key: event.target.value.trim(), value: envs[idx].value }, idx)diff --git a/editor/extensions/context/contextSchema.ts b/editor/extensions/context/contextSchema.tsindex 9521ba575..411af2188 100644--- a/editor/extensions/context/contextSchema.ts+++ b/editor/extensions/context/contextSchema.ts@@ -18,7 +18,7 @@ export default Node.create({addAttributes() {return {- ...attributeHandler({ htmlPrefix: HTML_ATTR_PREFIX, nodeAttribute: constants.NODE_ATTR_CELL_RUN_ON_START }),+ // ...attributeHandler({ htmlPrefix: HTML_ATTR_PREFIX, nodeAttribute: constants.NODE_ATTR_CELL_RUN_ON_START }),}},