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)
|
||||
setTimeout(async () => {
|
||||
const recordingResult = await commands.isRecording();
|
||||
if (recordingResult.status === "ok" && recordingResult.data) {
|
||||
const isRecording = await commands.isRecording();
|
||||
if (isRecording) {
|
||||
return; // Skip auto-switch if recording in progress
|
||||
}
|
||||
loadCurrentModel();
|
||||
|
|
@ -199,8 +199,8 @@ const ModelSelector: React.FC<ModelSelectorProps> = ({ onError }) => {
|
|||
|
||||
// Auto-select the newly extracted model (skip if recording in progress)
|
||||
setTimeout(async () => {
|
||||
const recordingResult = await commands.isRecording();
|
||||
if (recordingResult.status === "ok" && recordingResult.data) {
|
||||
const isRecording = await commands.isRecording();
|
||||
if (isRecording) {
|
||||
return; // Skip auto-switch if recording in progress
|
||||
}
|
||||
loadCurrentModel();
|
||||
|
|
|
|||
Loading…
Reference in a new issue