diff --git a/examples/react/kitchen-sink/src/mockTodos.ts b/examples/react/kitchen-sink/src/mockTodos.ts index e913d7031d..6fa6127d51 100644 --- a/examples/react/kitchen-sink/src/mockTodos.ts +++ b/examples/react/kitchen-sink/src/mockTodos.ts @@ -77,14 +77,7 @@ export async function fetchInvoices() { export async function fetchInvoiceById(id: number) { return loaderDelayFn(() => ensureInvoices().then(() => { - const invoice = invoices.find((d) => d.id === id) - if (invoice) { - return { - ...invoice, - body: `${invoice.body} ${Date.now()}`, - } - } - return invoice + return invoices.find((d) => d.id === id) }), ) }