diff --git a/client/scripts/eslint-baseline.json b/client/scripts/eslint-baseline.json index 2c0a692c6..0c5bc98a9 100644 --- a/client/scripts/eslint-baseline.json +++ b/client/scripts/eslint-baseline.json @@ -35,7 +35,7 @@ }, "tests": { "@typescript-eslint/no-explicit-any": 484, - "@typescript-eslint/no-non-null-assertion": 1849, + "@typescript-eslint/no-non-null-assertion": 1848, "@typescript-eslint/no-misused-promises": 22, "@typescript-eslint/no-unused-vars": 48, "@typescript-eslint/no-floating-promises": 33, diff --git a/client/src/components/Journey/useJourneyEntryForm.ts b/client/src/components/Journey/useJourneyEntryForm.ts index 8573ee540..27dd49b2c 100644 --- a/client/src/components/Journey/useJourneyEntryForm.ts +++ b/client/src/components/Journey/useJourneyEntryForm.ts @@ -186,11 +186,11 @@ export function useJourneyEntryForm({ const next = [...previous]; for (const group of groups) { const index = next.findIndex((pick) => pick.provider === provider && pick.passphrase === group.passphrase); - if (index < 0) { + const existing = next[index]; + if (!existing) { next.push({ ...group, provider }); continue; } - const existing = next[index]!; const assets = new Map(existing.assetIds.map((id, i) => [id, existing.mediaTypes?.[i] ?? 'image'])); group.assetIds.forEach((id, i) => { if (!assets.has(id)) assets.set(id, group.mediaTypes?.[i] ?? 'image'); diff --git a/client/src/mobile/components/MSheet.tsx b/client/src/mobile/components/MSheet.tsx index 1c22f0cc3..39d682045 100644 --- a/client/src/mobile/components/MSheet.tsx +++ b/client/src/mobile/components/MSheet.tsx @@ -185,7 +185,7 @@ export default function MSheet({ variant = 'card', dimTransparent = false, ariaLabel, - covered = false, + covered, className = '', children, discardGuard, @@ -294,8 +294,8 @@ export default function MSheet({
{ if (e.target === e.currentTarget) requestClose() }}