Skip to content

Commit 225ef20

Browse files
committed
fix: coerce tsa input updates to string
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 6946d9d commit 225ef20

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/views/Settings/TSA.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
:loading="loading"
2222
:error="!!errors.tsa_url"
2323
:helper-text="getHelperText('tsa_url')"
24-
@update:modelValue="(value) => updateField('tsa_url', value)" />
24+
@update:modelValue="(value) => updateField('tsa_url', String(value))" />
2525

2626
<NcTextField :modelValue="tsa_policy_oid"
2727
:label="t('libresign', 'TSA Policy OID')"
@@ -30,7 +30,7 @@
3030
:loading="loading"
3131
:error="!!errors.tsa_policy_oid"
3232
:helper-text="getHelperText('tsa_policy_oid')"
33-
@update:modelValue="(value) => updateField('tsa_policy_oid', value)" />
33+
@update:modelValue="(value) => updateField('tsa_policy_oid', String(value))" />
3434

3535
<NcSelect v-model="selectedAuthType"
3636
:options="authOptions"
@@ -47,7 +47,7 @@
4747
:loading="loading"
4848
:error="!!errors.tsa_username"
4949
:helper-text="getHelperText('tsa_username')"
50-
@update:modelValue="(value) => updateField('tsa_username', value)" />
50+
@update:modelValue="(value) => updateField('tsa_username', String(value))" />
5151

5252
<NcPasswordField :modelValue="tsa_password"
5353
:label="t('libresign', 'Password')"
@@ -56,7 +56,7 @@
5656
:loading="loading"
5757
:error="!!errors.tsa_password"
5858
:helper-text="getHelperText('tsa_password')"
59-
@update:modelValue="(value) => updateField('tsa_password', value)" />
59+
@update:modelValue="(value) => updateField('tsa_password', String(value))" />
6060
</template>
6161
</div>
6262
</NcSettingsSection>

0 commit comments

Comments
 (0)