fix build
This commit is contained in:
parent
add9544d86
commit
fdea7e13b2
1 changed files with 4 additions and 4 deletions
|
|
@ -166,8 +166,8 @@ const ModelSelector: React.FC<ModelSelectorProps> = ({ onError }) => {
|
||||||
|
|
||||||
// Auto-select the newly downloaded model (skip if recording in progress)
|
// Auto-select the newly downloaded model (skip if recording in progress)
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
const recordingResult = await commands.isRecording();
|
const isRecording = await commands.isRecording();
|
||||||
if (recordingResult.status === "ok" && recordingResult.data) {
|
if (isRecording) {
|
||||||
return; // Skip auto-switch if recording in progress
|
return; // Skip auto-switch if recording in progress
|
||||||
}
|
}
|
||||||
loadCurrentModel();
|
loadCurrentModel();
|
||||||
|
|
@ -199,8 +199,8 @@ const ModelSelector: React.FC<ModelSelectorProps> = ({ onError }) => {
|
||||||
|
|
||||||
// Auto-select the newly extracted model (skip if recording in progress)
|
// Auto-select the newly extracted model (skip if recording in progress)
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
const recordingResult = await commands.isRecording();
|
const isRecording = await commands.isRecording();
|
||||||
if (recordingResult.status === "ok" && recordingResult.data) {
|
if (isRecording) {
|
||||||
return; // Skip auto-switch if recording in progress
|
return; // Skip auto-switch if recording in progress
|
||||||
}
|
}
|
||||||
loadCurrentModel();
|
loadCurrentModel();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue