chore: lint fix
This commit is contained in:
parent
67aa89c948
commit
9530c695d3
@ -9,7 +9,7 @@ import {
|
|||||||
OptionType,
|
OptionType,
|
||||||
events,
|
events,
|
||||||
fs,
|
fs,
|
||||||
baseName
|
baseName,
|
||||||
} from '@janhq/core'
|
} from '@janhq/core'
|
||||||
|
|
||||||
import { atom, useSetAtom } from 'jotai'
|
import { atom, useSetAtom } from 'jotai'
|
||||||
@ -62,7 +62,7 @@ const useImportModel = () => {
|
|||||||
const importModels = useCallback(
|
const importModels = useCallback(
|
||||||
(models: ImportingModel[], optionType: OptionType) => {
|
(models: ImportingModel[], optionType: OptionType) => {
|
||||||
models.map(async (model) => {
|
models.map(async (model) => {
|
||||||
const modelId = model.modelId ?? await baseName(model.path)
|
const modelId = model.modelId ?? (await baseName(model.path))
|
||||||
if (modelId) {
|
if (modelId) {
|
||||||
addDownloadingModel(modelId)
|
addDownloadingModel(modelId)
|
||||||
extensionManager
|
extensionManager
|
||||||
|
|||||||
@ -306,7 +306,8 @@ const Advanced = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// Stop any running model to apply the changes
|
// 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