Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fil tools error preventing interface from showing #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iaminawe
Copy link

I was getting an error where tools was undefined and the interface was not starting.

tools.map is not a function. (In 'tools.map((tab, index) => /*#__PURE__*/(0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxDEV)(_components_button_Button__WEBPACK_IMPORTED_MODULE_6__.Button, {
label: tab.name,
iconPosition: 'start',
icon: renderIcon(tab.name),
buttonStyle: activeTab === index ? 'action' : 'regular',
onClick: () => setActiveTab(index)
}, index, false, {
fileName: _jsxFileName,
lineNumber: 791,
columnNumber: 15
}, this))', 'tools.map' is undefined)

The errors seem to be related to the fetchTools function not being properly defined within the useEffect hook.

  • I moved the fetchTools function inside the useEffect hook to ensure proper scoping.
  • Fixed references to client, wavStreamPlayer, sessionID that are now out of scope.
  • Ensured the fetchTools function is being called within the useEffect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant