fix(places): the third CI run, no awaits in loops and an edit target that may be none

The rating order test pages through its cursor with a recursion and checks
the refused floors at once instead of awaiting in a loop, and the edit hook
types its first editable copy as possibly none, which the strict check reads
from a conditional rather than a narrowed assignment.
This commit is contained in:
Maurice
2026-11-30 00:16:23 +00:00
parent 1c9ac0b159
commit 29ae0de1ef
2 changed files with 10 additions and 12 deletions
@@ -100,7 +100,7 @@ export function usePlaceEdit({
const [draft, setDraft] = useState<Draft | null>(null);
const [saving, setSaving] = useState(false);
const target: EditTarget | null = targets[0] ?? null;
const target: EditTarget | null = targets.length > 0 ? targets[0] : null;
const start = () => {
if (!target) return;