chore: lint fix

This commit is contained in:
Louis 2024-11-11 11:47:04 +07:00
parent 67aa89c948
commit 9530c695d3
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2
2 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import {
OptionType,
events,
fs,
baseName
baseName,
} from '@janhq/core'
import { atom, useSetAtom } from 'jotai'
@ -62,7 +62,7 @@ const useImportModel = () => {
const importModels = useCallback(
(models: ImportingModel[], optionType: OptionType) => {
models.map(async (model) => {
const modelId = model.modelId ?? await baseName(model.path)
const modelId = model.modelId ?? (await baseName(model.path))
if (modelId) {
addDownloadingModel(modelId)
extensionManager

View File

@ -306,7 +306,8 @@ const Advanced = () => {
})
}
// Stop any running model to apply the changes
if (e.target.checked !== gpuEnabled) stopModel().then(() => window.core?.api?.relaunch())
if (e.target.checked !== gpuEnabled)
stopModel().then(() => window.core?.api?.relaunch())
}}
/>
}