Remove console.logs

This commit is contained in:
Oleg Ivaniv 2024-11-12 16:50:48 +01:00
parent 26d7fa7378
commit eda0f65041
No known key found for this signature in database

View file

@ -87,19 +87,19 @@ export function useEvaluationForm(testId?: number) {
}, },
evaluationWorkflow: { evaluationWorkflow: {
mode: 'list', mode: 'list',
value: testDefinition.evaluationWorkflowId || '', value: testDefinition.evaluationWorkflowId ?? '',
__rl: true, __rl: true,
}, },
metrics: [''], metrics: [''],
}; };
} }
} catch (error) { } catch (error) {
// TODO: Throw better errors
console.error('Failed to load test data', error); console.error('Failed to load test data', error);
} }
}; };
const saveTest = async () => { const saveTest = async () => {
console.log('Saving Test');
if (isSaving.value) return; if (isSaving.value) return;
isSaving.value = true; isSaving.value = true;
@ -113,7 +113,6 @@ export function useEvaluationForm(testId?: number) {
evaluationWorkflowId: state.value.evaluationWorkflow.value as string, evaluationWorkflowId: state.value.evaluationWorkflow.value as string,
}), }),
}; };
console.log('Saving Test with params', params, 'isEditing', isEditing.value);
if (isEditing.value && testId) { if (isEditing.value && testId) {
await evaluationsStore.update({ await evaluationsStore.update({
@ -127,7 +126,6 @@ export function useEvaluationForm(testId?: number) {
}); });
} }
} catch (e) { } catch (e) {
console.error(e);
throw e; throw e;
} finally { } finally {
isSaving.value = false; isSaving.value = false;
@ -169,7 +167,6 @@ export function useEvaluationForm(testId?: number) {
} }
}; };
// Initialize
const init = async () => { const init = async () => {
await tagsStore.fetchAll(); await tagsStore.fetchAll();
if (testId) { if (testId) {