Resolve bug
This commit is contained in:
@@ -371,6 +371,7 @@ watch(() => route.params.id, fetchScenario);
|
||||
|
||||
//Function to fetch scenarios
|
||||
function fetchScenario(id) {
|
||||
chatDisabled();
|
||||
scenario.value.inputs = null;
|
||||
data_loaded.value = false;
|
||||
formData.value = {};
|
||||
@@ -385,10 +386,12 @@ function fetchScenario(id) {
|
||||
reqMultiFile.value = true;
|
||||
}
|
||||
if (scenario.value.inputs.some((input) => input.type === 'singlefile_acceptall')) {
|
||||
reqMultiFile.value = false;
|
||||
acceptedFormats.value = "";
|
||||
//acceptedFormats.value = '.doc,.docx,.pdf,.msg,.txt,.xlx,.xlxs,.logs,.pptx,.json,.odt,.rtf,.xml,.html';
|
||||
}
|
||||
if (scenario.value.inputs.some((input) => input.type === 'singlefile')) {
|
||||
reqMultiFile.value = false;
|
||||
acceptedFormats.value = '.docx';
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user