Skip to content

Commit

Permalink
Merge pull request #4529 from mikhailprivalov/fix-upload-file
Browse files Browse the repository at this point in the history
Загрузка файлов - fix
  • Loading branch information
urchinpro authored Dec 6, 2024
2 parents aaed294 + 4b1f823 commit 26ca268
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/parse_file/forms101.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def validate_med_exam_data(normalize_data: dict, inn_company) -> dict:
errors.append("Подразделение не указано")
if not normalize_data["gender"] in ["м", "ж"]:
errors.append("Пол указан не верно")
if len(normalize_data["position"]) > 128:
if normalize_data["position"] and len(normalize_data["position"]) > 128:
errors.append("Должность больше 128 символов")

if errors:
Expand Down
1 change: 1 addition & 0 deletions l2-frontend/src/components/UploadFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
</template>

<div
v-if="selectedForm"
id="tp"
:class="props.showResults ? 'tp-high' : 'tp'"
>
Expand Down

0 comments on commit 26ca268

Please sign in to comment.