fix: eslint

This commit is contained in:
Louis 2024-08-26 13:56:16 +07:00
parent 81fa0b80e8
commit 674a6300f0
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2
3 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,7 @@
import { useEffect } from 'react'
import { AppConfiguration, getUserHomePath, joinPath } from '@janhq/core'
import { AppConfiguration, getUserHomePath } from '@janhq/core'
import { useSetAtom } from 'jotai'

View File

@ -2,7 +2,7 @@
import { Fragment, ReactNode, useEffect } from 'react'
import { AppConfiguration, getUserHomePath, joinPath } from '@janhq/core'
import { AppConfiguration, getUserHomePath } from '@janhq/core'
import { useSetAtom } from 'jotai'
import useAssistants from '@/hooks/useAssistants'

View File

@ -27,7 +27,7 @@ const Tools = () => {
const componentDataAssistantSetting = getConfigurationsData(
(activeThread?.assistants[0]?.tools &&
activeThread?.assistants[0]?.tools[0]?.settings) ??
{}
{}
)
useEffect(() => {
@ -223,7 +223,6 @@ const Tools = () => {
}
/>
</div>
</div>
</div>
<AssistantSetting