chore: lint fix
This commit is contained in:
parent
67aa89c948
commit
9530c695d3
@ -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
|
||||
|
||||
@ -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())
|
||||
}}
|
||||
/>
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user