Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Wellheor1 committed Jul 3, 2024
1 parent bfa9336 commit f8562d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion l2-frontend/src/components/types-and-forms-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export default function typesAndForms() {
} else if (onlyResult) {
result = func(type, isResultForm.value, allowedForms);
} else {
const tmpResult = Object.values(fileForms.value[type]);
const tmp: formsFile[] = Object.values(fileForms.value[type]);
const tmpResult = tmp.map(obj => obj.id);
result = func(type, tmpResult, allowedForms);
}
return result;
Expand Down
2 changes: 1 addition & 1 deletion l2-frontend/src/pages/LaboratoryResults/ResultsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
<UploadFileModal
v-if="research.enabled_add_files"
title="Прикрепить результат"
:upload-result="true"
:types-file="['PDF']"
:forms-file="['api.laboratory.forms100.form_01']"
:entity-id="pk"
/>
<strong>
Expand Down

0 comments on commit f8562d1

Please sign in to comment.