refactor: refs #8440 update required and deletable attribute checks to use 'in' operator for originalAttrs
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jose Antonio Tubau 2025-03-03 16:01:04 +01:00
parent 0619f21cf5
commit ef0ac17d88
1 changed files with 3 additions and 5 deletions

View File

@ -148,7 +148,7 @@ function fetchData([data]) {
v-model="newNote.observationTypeFk"
option-label="description"
style="flex: 0.15"
:required="Object.keys(originalAttrs).includes('required')"
:required="'required' in originalAttrs"
@keyup.enter.stop="insert"
/>
<VnInput
@ -158,7 +158,7 @@ function fetchData([data]) {
filled
autogrow
@keyup.enter.stop="handleClick"
:required="Object.keys(originalAttrs).includes('required')"
:required="'required' in originalAttrs"
clearable
>
<template #append>
@ -230,9 +230,7 @@ function fetchData([data]) {
<span v-text="toDateHourMin(note.created)" />
<div>
<QIcon
v-if="
Object.keys(originalAttrs).includes('deletable')
"
v-if="'deletable' in originalAttrs"
name="delete"
size="sm"
class="cursor-pointer"