mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 00:20:07 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user