fix: resolve follow-up issues from oxlint migration

This commit is contained in:
ephraimduncan
2026-03-06 05:45:16 +00:00
parent ae02169e97
commit 835c55e2ca
68 changed files with 433 additions and 430 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ export const getEnvelopeItemPdfUrl = (options: EnvelopeItemPdfUrlOptions) => {
const version = options.version;
return token
? `${NEXT_PUBLIC_WEBAPP_URL()}/api/files/token/${token}/envelopeItem/${id}/download/${version}${presignToken ? `?presignToken=${presignToken}` : ''}`
? `${NEXT_PUBLIC_WEBAPP_URL()}/api/files/token/${token}/envelopeItem/${id}/download/${version}`
: `${NEXT_PUBLIC_WEBAPP_URL()}/api/files/envelope/${envelopeId}/envelopeItem/${id}/download/${version}`;
}
+2 -2
View File
@@ -53,8 +53,8 @@ export const validateFieldsUninserted = (): boolean => {
const innerDiv = element.querySelector('div');
const hasError = innerDiv?.getAttribute('data-error') === 'true';
if (hasError) {
errorElements.push(element as HTMLElement);
if (hasError && element instanceof HTMLElement) {
errorElements.push(element);
} else {
element.removeAttribute('data-error');
}