Maurice
1e674f040a
fix(planner): a create expense click that saves nothing no longer opens the editor on the next save
...
In the desktop booking and transport dialogs, clicking "Create expense"
(or editing a linked expense) before the booking had a title saved
nothing, which is right, but the wish was kept. The next ordinary save
then opened the expense editor out of nowhere. The same happened after a
save that threw.
useBookingExpenseIntent stored the wish in a ref and only cleared it when
the form read it, which the desktop forms do after a successful save. The
hook now clears the wish once the save its click started has settled,
unless a newer click replaced it in the meantime. The phone sheets read
it at the start of the save and are unaffected.
Red tests:
- FE-PLANNER-RESMODAL-107 in ReservationModal.test.tsx: "expected
"vi.fn()" to not be called at all, but actually been called 1 times".
- FE-PLANNER-BOOKINGEXPENSE-005 in useBookingExpenseIntent.test.ts:
"expected { create: true } to be null".
- FE-PLANNER-BOOKINGEXPENSE-006: "expected { editItem: { id: 9, ... } }
to be null".
No existing assertions changed.
2026-10-09 17:43:24 +02:00
..
2026-10-09 16:15:49 +02:00
2026-08-23 11:59:12 +02:00
2026-10-09 16:15:48 +02:00
2026-07-29 11:55:31 +02:00
2026-10-09 16:15:48 +02:00
2026-10-07 22:57:51 +02:00
2026-10-07 22:33:58 +00:00
2026-09-03 15:51:13 +02:00
2026-09-27 21:00:19 +02:00
2026-09-27 21:00:19 +02:00
2026-08-12 21:37:12 +02:00
2026-09-25 15:34:32 +02:00
2026-10-07 22:33:58 +00:00
2026-10-09 17:36:59 +02:00
2026-10-09 17:36:59 +02:00
2026-09-26 15:59:05 +02:00
2026-09-26 14:38:01 +02:00
2026-09-25 15:34:32 +02:00
2026-10-07 22:33:58 +00:00
2026-10-09 16:29:40 +02:00
2026-10-09 16:29:40 +02:00
2026-09-25 15:34:32 +02:00
2026-09-25 15:34:32 +02:00
2026-09-27 21:00:19 +02:00
2026-10-09 07:16:40 +00:00
2026-10-09 07:16:40 +00:00
2026-10-07 16:23:47 +02:00
2026-10-09 07:16:40 +00:00
2026-10-09 07:16:40 +00:00
2026-10-09 07:16:40 +00:00
2026-10-09 16:15:48 +02:00
2026-10-09 16:15:48 +02:00
2026-10-08 13:02:58 +02:00
2026-10-09 16:15:48 +02:00
2026-09-27 21:00:19 +02:00
2026-07-29 11:55:31 +02:00
2026-10-07 22:33:58 +00:00
2026-09-27 21:00:19 +02:00
2026-10-09 07:16:40 +00:00
2026-09-30 23:00:12 +02:00
2026-09-27 21:00:19 +02:00
2026-09-27 21:00:19 +02:00
2026-09-27 21:00:19 +02:00
2026-09-27 21:00:19 +02:00
2026-09-27 21:00:19 +02:00
2026-10-09 15:19:42 +02:00
2026-09-27 21:00:19 +02:00
2026-10-07 22:33:58 +00:00
2026-10-09 07:16:40 +00:00
2026-10-09 07:16:40 +00:00
2026-09-27 21:00:19 +02:00
2026-10-09 15:19:41 +02:00
2026-09-27 21:00:19 +02:00
2026-09-27 21:00:19 +02:00
2026-09-26 10:36:03 +02:00
2026-08-12 09:08:47 +02:00
2026-08-12 09:08:47 +02:00
2026-09-23 13:41:31 +02:00
2026-09-23 13:41:31 +02:00
2026-10-07 16:23:47 +02:00
2026-10-09 16:15:48 +02:00
2026-08-11 22:14:12 +02:00
2026-08-11 22:14:12 +02:00
2026-10-01 10:17:29 +02:00
2026-09-30 23:00:12 +02:00
2026-09-12 18:02:57 +02:00
2026-09-12 18:02:57 +02:00
2026-09-30 23:00:12 +02:00
2026-09-30 23:00:12 +02:00
2026-08-14 10:24:14 +03:00
2026-08-14 10:24:14 +03:00
2026-10-01 15:18:30 +02:00
2026-10-07 22:33:58 +00:00
2026-09-27 21:00:19 +02:00
2026-10-07 22:33:58 +00:00
2026-09-27 23:15:19 +02:00
2026-09-27 21:00:19 +02:00
2026-10-09 15:19:41 +02:00
2026-09-30 23:00:12 +02:00
2026-10-09 15:19:41 +02:00
2026-10-01 13:47:04 +02:00
2026-10-09 15:19:41 +02:00
2026-08-11 16:00:03 +02:00
2026-08-11 16:00:03 +02:00
2026-10-01 15:18:30 +02:00
2026-10-01 15:18:30 +02:00
2026-09-20 20:28:23 +02:00
2026-09-20 20:28:23 +02:00
2026-10-08 00:01:59 +00:00
2026-10-09 07:16:40 +00:00
2026-09-30 23:00:12 +02:00
2026-09-30 23:00:12 +02:00
2026-10-01 12:52:58 +02:00
2026-10-01 13:18:47 +02:00
2026-07-29 15:14:21 +02:00
2026-08-25 15:22:38 +02:00
2026-07-05 01:13:04 +02:00
2026-07-05 01:13:04 +02:00
2026-09-27 21:00:19 +02:00
2026-10-07 22:33:58 +00:00
2026-10-05 07:54:44 +02:00
2026-10-01 13:15:02 +02:00
2026-09-27 21:00:19 +02:00
2026-10-09 15:19:41 +02:00
2026-09-27 21:00:19 +02:00
2026-10-01 14:19:52 +02:00
2026-10-07 22:33:58 +00:00
2026-09-27 21:00:19 +02:00
2026-09-27 21:00:19 +02:00
2026-10-07 22:33:58 +00:00
2026-10-01 13:15:02 +02:00
2026-10-01 13:15:02 +02:00
2026-09-29 21:16:25 +02:00
2026-09-29 21:16:25 +02:00
2026-09-27 23:15:19 +02:00
2026-09-27 21:00:19 +02:00
2026-10-09 15:19:42 +02:00
2026-10-09 15:19:42 +02:00
2026-10-09 17:43:24 +02:00
2026-10-09 16:29:40 +02:00
2026-09-27 21:06:02 +02:00
2026-10-09 07:16:40 +00:00
2026-09-27 23:15:19 +02:00
2026-09-30 23:00:12 +02:00
2026-09-30 23:00:12 +02:00
2026-09-30 23:00:12 +02:00
2026-10-09 07:16:40 +00:00
2026-10-09 07:16:40 +00:00
2026-07-29 11:55:31 +02:00
2026-08-25 15:22:38 +02:00
2026-10-09 16:15:48 +02:00
2026-10-09 16:15:48 +02:00
2026-08-27 11:02:09 +02:00
2026-08-27 11:02:09 +02:00
2026-10-07 22:33:58 +00:00
2026-09-27 21:00:19 +02:00
2026-10-07 22:33:58 +00:00
2026-09-19 22:39:05 +02:00
2026-09-19 22:39:05 +02:00
2026-10-08 00:01:59 +00:00
2026-10-07 22:33:58 +00:00
2026-10-09 15:19:42 +02:00
2026-10-09 15:19:42 +02:00
2026-10-09 17:29:22 +02:00
2026-10-09 17:29:22 +02:00
2026-10-01 14:31:12 +02:00
2026-10-09 17:29:22 +02:00
2026-09-25 15:34:32 +02:00
2026-10-07 22:33:58 +00:00
2026-09-30 23:00:12 +02:00
2026-10-09 15:19:43 +02:00
2026-10-07 22:06:40 +02:00
2026-10-07 22:33:58 +00:00
2026-10-09 17:43:24 +02:00
2026-10-09 17:43:24 +02:00
2026-10-09 15:19:42 +02:00
2026-10-09 15:19:42 +02:00
2026-10-09 07:16:40 +00:00
2026-10-09 07:16:40 +00:00
2026-10-09 07:16:40 +00:00
2026-10-09 07:16:40 +00:00
2026-10-09 15:19:41 +02:00
2026-10-09 15:19:41 +02:00
2026-10-09 07:16:40 +00:00
2026-10-09 07:16:40 +00:00
2026-10-09 15:19:41 +02:00
2026-10-09 15:19:41 +02:00
2026-10-09 15:19:41 +02:00
2026-10-09 15:19:41 +02:00
2026-10-09 15:19:41 +02:00
2026-10-09 15:19:41 +02:00
2026-10-09 15:19:41 +02:00
2026-10-09 15:19:41 +02:00
2026-10-08 00:01:59 +00:00
2026-10-09 15:19:41 +02:00
2026-09-25 15:34:32 +02:00
2026-09-25 15:34:32 +02:00
2026-10-09 15:19:42 +02:00
2026-10-09 15:19:42 +02:00
2026-10-09 16:15:48 +02:00
2026-10-09 16:15:48 +02:00
2026-10-09 17:29:22 +02:00
2026-10-09 15:19:42 +02:00
2026-10-09 15:19:43 +02:00
2026-10-09 15:19:43 +02:00