Skip to content

Commit 32dc5d8

Browse files
fix(runtime): a declarative update action answers the validation warnings its write raised, and the console toast shows them (#38076)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6Jao3VQSGvy9zYGn6FpGEZRCnJ)_ Fixes #37867 repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 用户点「确认订单」这类改状态的按钮时,如果这次写入触发了警告型校验规则,现在会弹出一条警告样式的提示,规则作者写的话就在提示里,撤销按钮照样在;以前只弹成功提示。 - 替用按钮改状态的应用解决:警告规则以前只在编辑表单里生效,最常用的按钮路径静默通过(HotCRM 订单超出框架合同额度就是实例)。 - 写入本身不变,只是应答多带警告、提示换样式;如果有问题,最多是提示样式不对,可以直接撤回。 - 无 ## What changes - `packages/runtime/src/action-execution.ts`: `executeDeclarativeUpdateAction` copies the `warnings` the data-plane update answered (`protocol.updateData`, the data door's own `ValidateDataIssue` elements) onto its result. `DeclarativeUpdateResult` gains an optional `warnings`, present only when the write raised an advisory rule hit, so a write that trips nothing answers byte-for-byte as before. Both action doors (REST `POST /api/v1/actions/...` and MCP `run_action`) go through this executor. The stale roll-up path (`ERR_SUMMARY_RECOMPUTE`) composes from the same `written` answer, so it carries them too. - `ui/packages/core/src/actions/ActionRunner.ts`: for an `operation: 'update'` action only, the runner reads the answer's `warnings` (distinct messages, in answer order). When there are any, the success toast takes the `warning` variant, with the messages as its `description` and the Undo affordance kept. This is one toast, the way a record save raises one (`toastRecordSave`). When the author turned the success toast off (`toast.showOnSuccess: false`, or a result dialog), the warning is still shown, in the rule's own words, so no new runner text is needed. `ToastHandler` options gain an optional `description`. - `ui/packages/app-shell/src/hooks/useConsoleActionRuntime.tsx`, `ui/packages/app-shell/src/views/RecordDetailView.tsx`: both console toast handlers used to send every non-error toast to `toast.success`. They now honour `type: 'warning'` and call `toast.warning(message, { description, duration, action })` with the same Undo action. - Changeset: `@objectstack/runtime`, `@object-ui/core`, `@object-ui/app-shell` patch. Not changed: `packages/spec` (the action answer has no zod declaration, it is the runtime's TS interface), locale packs (no new text), HotCRM (its `confirm_sales_order` and `framework_quota_exceeded` work as authored). ## Tests - `packages/runtime/src/action-declarative-update.test.ts`, a new top-level `describe` in the shared harness. It puts a `protocol` slot in front of the caller-honouring rig. REST: the 200 answer carries the write's warnings, element for element, beside the record and the undo anchor. MCP `run_action`: the same write gives the same warnings. Control: a write that trips no rule has no `warnings` key. The file gains a module-top `import '@objectstack/metadata'` so the dispatcher's lazy load is paid at collection (`check:test-source-alias`). - `ui/packages/core/src/actions/__tests__/ActionRunner.updateOperation.test.ts`, a new `describe` through the real `createServerActionHandler`: one warning toast with the success message as title and the rule's words as description; repeated messages said once and distinct ones one per line; Undo kept on an undoable action; control with no warnings is a plain success toast with no description; success toast off still warns; reverse pin: a script action without `operation` never reads a `warnings` key. - `ui/packages/app-shell/src/hooks/__tests__/useConsoleActionRuntime.undoLookupId-11122.test.tsx` and `ui/packages/app-shell/src/views/RecordDetailView.undoLookupId-11122.test.tsx`, a new `describe` in each, down to `sonner`. On a grid row and on the record page, the update's warnings raise `toast.warning` once with the description and the Undo action, no success toast, and Undo restores the stored value. Both harnesses' route stubs gained an optional answer body. These two test files are a surface amendment to the claim, reported to the seat. ## Acceptance notes - Premise measured on `origin/main` `815e882b` before any edit. Through the real `HttpDispatcher.handleActions` → `executeDeclarativeUpdateAction` → `callData`, the protocol's `updateData` answered `["object","id","record","warnings"]` and the action's 200 body carried `warnings` 0 times. - The same executor also drops the data door's `notice` (a hook's message for the person) and `droppedFields`. Out of scope here; the seat files them. - `ToastHandler` and the action answer each gain one optional member. Nothing is refused or narrowed. ## Verification - Two-minute check: `pnpm --dir ui exec vitest run packages/core/src/actions/__tests__/ActionRunner.updateOperation.test.ts` shows 19 passed, 6 of them the new block. - Read first: `executeDeclarativeUpdateAction`'s result block (`action-execution.ts`), then the success-toast arm of `handlePostExecution` (`ActionRunner.ts`). <details><summary>Local readings at 40c5c82</summary> - New and edited suites: `action-declarative-update.test.ts` 37 passed; `ActionRunner.updateOperation.test.ts` 19 passed; `useConsoleActionRuntime.undoLookupId-11122` 6 passed; `RecordDetailView.undoLookupId-11122` 4 passed. - Full: `pnpm --filter @objectstack/runtime test` Test Files 655 passed, Tests 12316 passed, 25 skipped. ui vitest `packages/core/src/actions`: 58 files, 810 passed. app-shell `useConsoleActionRuntime*` + `RecordDetailView*`: 128 files, 1104 passed. - Typecheck exit 0: `@objectstack/runtime` (test layer 27 files / 183 errors held in the ledger, unchanged), `@object-ui/core` `type-check`, `@object-ui/app-shell` `type-check`. - Ablations through `scripts/ablation-replace.mjs`, each restore blob == HEAD: runtime `warnings` spread removed, 2 failed (REST, MCP); the runner's warnings read emptied, 6 failed (4 core, 2 hosts); each host's warning arm disabled, 1 failed each. - `dispatch-gates --ran` with recorded exit codes: 73 derived, 71 exit 0, 2 NOT MEASURED (exit 3: `check-plugin-teardown-shape --self-test`, fixture commit outside the shallow clone; `check:dual-build-cjs-loads`, needs a full `pnpm build`), 0 unrun. `check:test-source-alias` exit 0 at 40c5c82. - `overlap-check.mjs` VERDICT clean exit 0 against main and #37929, #37924, #37896. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qiby3dfNfCgpXwPkB2Hf)_ <!-- signed: repo:objectstack#3 · os-tesla · session_01L9qiby3dfNfCgpXwPkB2Hf --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 079edad commit 32dc5d8

9 files changed

Lines changed: 442 additions & 9 deletions
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/runtime': patch
3+
'@object-ui/core': patch
4+
'@object-ui/app-shell': patch
5+
---
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: none
9+
10+
A declarative `operation: 'update'` action now tells the person about the validation warnings its write raised.
11+
A `severity: 'warning'` rule lets the save through and answers `warnings`, and the edit form shows them; the
12+
button that performs the same write answered only its success. The action's answer
13+
(`POST /api/v1/actions/:object/:action`, and MCP `run_action`) now carries the write's `warnings`, in the data
14+
door's own element shape, present only when the write raised one. The console's action runner raises the
15+
success toast on its warning variant with the rule's words under the title, and keeps the Undo button; an action
16+
whose success toast is turned off still shows the warning. `ToastHandler` options gain an optional `description`.

‎packages/runtime/src/action-declarative-update.test.ts‎

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ import { describe, it, expect, vi } from 'vitest';
4242
import '@objectstack/metadata';
4343

4444
import { assertEngineUpdateDispatch } from '@objectstack/metadata-core';
45+
// Paid at collection, not inside a case's clocked window: the dispatcher's reach
46+
// loads it lazily (check:test-source-alias).
47+
import '@objectstack/metadata';
4548

4649
import { HttpDispatcher } from './http-dispatcher.js';
4750
import {
@@ -779,3 +782,123 @@ describe('#15079 reverse pin — a handler-less `type: script` action WITHOUT `o
779782
expect(rig.row.status).toBe('open');
780783
});
781784
});
785+
786+
// ───────────────────────────────────────────────────────────────────────────
787+
// [#37867] The write's advisory `warnings` ride the action's answer
788+
// ───────────────────────────────────────────────────────────────────────────
789+
790+
/**
791+
* A warning rule lets the write through and answers `warnings`
792+
* (`protocol.updateData`, #22726). The button that performs the same write
793+
* answers the same warnings, at both doors, or the rule warns only the people
794+
* who edit the form.
795+
*
796+
* The rig above reaches the ObjectQL fallback of `callData`, which answers no
797+
* warnings by construction, so this block puts a `protocol` slot in front of it:
798+
* a double whose `updateData` writes through the rig's caller-honouring
799+
* `ql.update` and answers the protocol's shape, `warnings` set only when the
800+
* write tripped the stand-in rule (`status` set to `closed` while
801+
* `priority` is `low`).
802+
*/
803+
describe('#37867 — a declarative update answers the `warnings` its data-plane write raised', () => {
804+
const EARLY_CLOSE_WARNING = {
805+
field: 'status',
806+
code: 'rule_violation',
807+
message: 'A low-priority case closed this early skips the review queue.',
808+
rule: 'early_close_review',
809+
severity: 'warning',
810+
};
811+
812+
function protocolRig() {
813+
const rig = makeRig();
814+
const protocol: any = {
815+
updateData: vi.fn(async (req: any) => {
816+
await rig.ql.update(req.object, { ...req.data, id: req.id }, { where: { id: req.id }, context: req.context });
817+
const trips = rig.row.status === 'closed' && rig.row.priority === 'low';
818+
return {
819+
object: req.object,
820+
id: req.id,
821+
record: { ...rig.row },
822+
...(trips ? { warnings: [{ ...EARLY_CLOSE_WARNING }] } : {}),
823+
};
824+
}),
825+
};
826+
return { rig, protocol };
827+
}
828+
829+
async function restVia(userId: string, rig: Rig, protocol: any, path: string, body: any = {}) {
830+
const metadata: any = {
831+
load: vi.fn(async () => null),
832+
loadDiagnosed: vi.fn(async () => ({ data: null, degraded: false, errors: [] })),
833+
listObjects: vi.fn(async () => [OBJECT_DEF]),
834+
getObject: vi.fn(async (n: string) => (n === OBJECT_DEF.name ? OBJECT_DEF : undefined)),
835+
};
836+
const kernel: any = {
837+
context: {
838+
getService: (n: string) =>
839+
n === 'objectql' || n === 'data' ? rig.ql
840+
: n === 'metadata' ? metadata
841+
: n === 'protocol' ? protocol
842+
: null,
843+
},
844+
};
845+
const context: any = { request: {}, environmentId: 'platform', executionContext: ec(userId) };
846+
const res: any = await (new HttpDispatcher(kernel) as any).handleActions(path, 'POST', body, context);
847+
return res.response;
848+
}
849+
850+
async function mcpVia(userId: string, rig: Rig, protocol: any, name: string, input: Record<string, unknown>) {
851+
const deps: any = {
852+
resolveService: async (_ctx: unknown, n: string) => (n === 'protocol' ? protocol : undefined),
853+
getObjectQL: async () => rig.ql,
854+
};
855+
const requestContext: any = { request: {}, environmentId: 'platform' };
856+
return await invokeBusinessAction(deps, requestContext, name, input as any, {
857+
driver: undefined,
858+
envId: 'platform',
859+
ec: ec(userId),
860+
getMeta: () => ({ listObjects: async () => [OBJECT_DEF] }),
861+
callData: (action, params, dataDriver, scopeId, execCtx) =>
862+
callData(deps, requestContext, action, params, dataDriver, scopeId, execCtx),
863+
});
864+
}
865+
866+
it('REST: the 200 answer carries the write\'s warnings, element for element, beside the written record', async () => {
867+
const { rig, protocol } = protocolRig();
868+
const res = await restVia(OWNER, rig, protocol, `/${OBJECT}/close_case/${RECORD_ID}`);
869+
870+
expect(res.status).toBe(200);
871+
expect(res.body.success).toBe(true);
872+
// The write went through the protocol, once, as the caller.
873+
expect(protocol.updateData).toHaveBeenCalledTimes(1);
874+
expect(protocol.updateData.mock.calls[0][0].context?.userId).toBe(OWNER);
875+
expect(rig.row.status).toBe('closed');
876+
expect(res.body.data.warnings).toEqual([EARLY_CLOSE_WARNING]);
877+
expect(res.body.data).toMatchObject({ operation: DECLARATIVE_UPDATE_OPERATION, object: OBJECT, id: RECORD_ID });
878+
expect(res.body.data.record).toMatchObject({ id: RECORD_ID, status: 'closed' });
879+
// The undo anchor still rides beside them.
880+
expect(res.body.data.undo).toMatchObject({ undoData: { status: 'open' }, redoData: { status: 'closed' } });
881+
});
882+
883+
it('MCP `run_action`: the same write answers the same warnings', async () => {
884+
const { rig, protocol } = protocolRig();
885+
const out: any = await mcpVia(OWNER, rig, protocol, 'close_case', { recordId: RECORD_ID });
886+
887+
expect(out.ok).toBe(true);
888+
expect(protocol.updateData).toHaveBeenCalledTimes(1);
889+
expect(out.result.warnings).toEqual([EARLY_CLOSE_WARNING]);
890+
});
891+
892+
it('a write that trips no rule carries no `warnings` key at all', async () => {
893+
// The same action through the same protocol, on a row the rule does not
894+
// fire for. ABSENT, never `[]` — the data door's own shape; the firing
895+
// positive control is the REST case above, same rig.
896+
const { rig, protocol } = protocolRig();
897+
rig.row.priority = 'high';
898+
const res = await restVia(OWNER, rig, protocol, `/${OBJECT}/close_case/${RECORD_ID}`);
899+
900+
expect(res.status).toBe(200);
901+
expect(protocol.updateData).toHaveBeenCalledTimes(1);
902+
expect('warnings' in res.body.data).toBe(false);
903+
});
904+
});

‎packages/runtime/src/action-execution.ts‎

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { EngineQueryOptionsSchema, DATA_ACTION_TO_API_OPERATION } from '@objects
2323
import type { ExecutionContext } from '@objectstack/spec/kernel';
2424
import { isStoredMetadataBodyObject } from '@objectstack/spec/kernel';
2525
import type { IHttpServer, IObjectQLEngine, InternalFieldEvaluationQuery, QueryEvaluationGate, ServiceSlotContract, ServiceSlotContracts } from '@objectstack/spec/contracts';
26-
import { standardErrorCodeForHttpStatus, type MetadataProtocol } from '@objectstack/spec/api';
26+
import { standardErrorCodeForHttpStatus, type MetadataProtocol, type ValidateDataIssue } from '@objectstack/spec/api';
2727
import { renderOperationMessage } from '@objectstack/spec/system';
2828
// [#15942 / #16293] The confirmation member's SPELLING is the contract, so it
2929
// is imported, never hand-spelled: the door that refuses and the client that
@@ -5035,6 +5035,26 @@ export interface DeclarativeUpdateResult {
50355035
record: Record<string, unknown>;
50365036
/** Present only when the action declares `undoable: true`. */
50375037
undo?: DeclarativeUpdateUndo;
5038+
/**
5039+
* [#37867] The advisory validation-rule hits (`severity: 'warning' | 'info'`)
5040+
* of THIS write, exactly as the data-plane update answered them — the
5041+
* element is `ValidateDataIssue`, the data door's own `warnings` vocabulary.
5042+
* Present only when the write raised one: the same rule on the same write
5043+
* answers the same warnings whichever door the person used.
5044+
*/
5045+
warnings?: ValidateDataIssue[];
5046+
}
5047+
5048+
/**
5049+
* [#37867] The `warnings` a data-plane write answer carries, or `undefined`
5050+
* when it carries none. The protocol's `updateData` sets the member only when
5051+
* the write raised an advisory rule hit, so an empty or absent member answers
5052+
* the same: no warnings. Only the protocol arm of `callData` produces it; the
5053+
* ObjectQL fallback arm answers none, and this reads none from it.
5054+
*/
5055+
function writeAnswerWarnings(written: unknown): ValidateDataIssue[] | undefined {
5056+
const warnings = (written as { warnings?: unknown } | null | undefined)?.warnings;
5057+
return Array.isArray(warnings) && warnings.length > 0 ? (warnings as ValidateDataIssue[]) : undefined;
50385058
}
50395059

50405060
/**
@@ -5288,12 +5308,19 @@ export async function executeDeclarativeUpdateAction(
52885308
};
52895309
}
52905310

5311+
// [#37867] The write's advisory rule hits ride the answer. A warning rule
5312+
// lets the save through and tells the person; the data door answers it as
5313+
// `warnings`, and a button that performs the same write owes the same
5314+
// answer, or the warning holds only for people who edit the form.
5315+
const warnings = writeAnswerWarnings(written);
5316+
52915317
const result: DeclarativeUpdateResult = {
52925318
operation: DECLARATIVE_UPDATE_OPERATION,
52935319
object: objectName,
52945320
id: recordId,
52955321
record,
52965322
...(undo ? { undo } : {}),
5323+
...(warnings ? { warnings } : {}),
52975324
};
52985325
if (stale) throw withEarnedAnswer(stale, { ...result });
52995326
return result;

‎ui/packages/app-shell/src/hooks/__tests__/useConsoleActionRuntime.undoLookupId-11122.test.tsx‎

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,17 @@ vi.mock('../../views/FlowRunner', () => ({ FlowRunner: () => null }));
7575
// stub is handed, standing in for the declaration the route resolves by name:
7676
// the request never carries it (objectui#12941).
7777
const routeWrites: Array<Record<string, unknown>> = [];
78+
// What the route answers beside the write: by default the bare success, else
79+
// the declarative-update answer a case sets (objectstack#37867's `warnings`).
80+
let routeAnswerData: Record<string, unknown> | undefined;
7881
vi.mock('../../utils/consoleServerAction', () => ({
7982
createConsoleServerActionHandler: () => vi.fn(async (action: {
8083
params?: Record<string, unknown>;
8184
patch?: Record<string, unknown>;
8285
}) => {
8386
const { _rowRecord: _row, recordId: _id, ...fields } = action.params ?? {};
8487
routeWrites.push({ ...(action.patch ?? {}), ...fields });
85-
return { success: true };
88+
return routeAnswerData ? { success: true, data: routeAnswerData } : { success: true };
8689
}),
8790
}));
8891

@@ -175,7 +178,9 @@ async function runOnGridRow(action: Record<string, unknown>) {
175178
afterEach(() => {
176179
cleanup();
177180
routeWrites.length = 0;
181+
routeAnswerData = undefined;
178182
vi.mocked(toast.success).mockClear();
183+
vi.mocked(toast.warning).mockClear();
179184
globalUndoManager.clear();
180185
});
181186

@@ -290,3 +295,55 @@ describe('console runtime — where the field definitions come from (objectui#11
290295
expect(global.context).not.toHaveProperty('objectFields');
291296
});
292297
});
298+
299+
describe('grid row — an update whose write raised warnings warns, on one toast (objectstack#37867)', () => {
300+
const WARNING = 'This deal takes its account over the credit limit.';
301+
302+
it('the runtime raises the warning toast: the success message, the warning under it, and Undo', async () => {
303+
routeAnswerData = {
304+
operation: 'update',
305+
object: OBJECT,
306+
id: 'o1',
307+
record: { ...STORED, account: 'a2' },
308+
warnings: [{ field: 'account', code: 'rule_violation', message: WARNING, rule: 'credit_limit', severity: 'warning' }],
309+
};
310+
const dataSource = makeDataSource();
311+
render(
312+
<I18nProvider config={EN} persistLanguage={false}>
313+
<MemoryRouter>
314+
<ConsoleActionRuntimeProvider dataSource={dataSource} objects={[OBJECT_DEF]} objectName={OBJECT}>
315+
<SchemaRendererProvider dataSource={dataSource as never}>
316+
<ObjectGrid
317+
schema={{
318+
type: 'object-grid',
319+
objectName: OBJECT,
320+
columns: ['name', 'account'],
321+
rowActionDefs: [{
322+
locations: ['list_item'], successMessage: MESSAGE, name: 'set_account', label: 'Set account',
323+
type: 'script', operation: 'update', undoable: true, patch: { account: 'a2' },
324+
}],
325+
} as never}
326+
dataSource={dataSource as never}
327+
/>
328+
</SchemaRendererProvider>
329+
</ConsoleActionRuntimeProvider>
330+
</MemoryRouter>
331+
</I18nProvider>,
332+
);
333+
await waitFor(() => expect(screen.getByText('Deal')).toBeInTheDocument());
334+
await userEvent.click(await screen.findByTestId('row-action-trigger'));
335+
await userEvent.click(await screen.findByTestId('row-action-set_account'));
336+
337+
await waitFor(() => expect(toast.warning).toHaveBeenCalledTimes(1));
338+
const [message, options] = vi.mocked(toast.warning).mock.calls[0] as [string, { description?: string; action?: { onClick: () => void } }];
339+
expect(message).toBe(MESSAGE);
340+
expect(options.description).toBe(WARNING);
341+
expect(options.action).toBeDefined();
342+
// One toast: the warning variant replaces the success one, never joins it.
343+
expect(vi.mocked(toast.success).mock.calls.filter(([m]) => m === MESSAGE)).toHaveLength(0);
344+
345+
// The kept Undo is the runtime's real one.
346+
await act(async () => { options.action!.onClick(); });
347+
await waitFor(() => expect(dataSource.update).toHaveBeenLastCalledWith(OBJECT, 'o1', { account: 'a1' }));
348+
});
349+
});

‎ui/packages/app-shell/src/hooks/useConsoleActionRuntime.tsx‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,19 @@ export function useConsoleActionRuntime(opts: ConsoleActionRuntimeOptions): Cons
404404

405405
const toastHandler = useCallback<ToastHandler>((message, options) => {
406406
if (options?.type === 'error') { toast.error(message); return; }
407+
// objectstack#37867 — a write that went through with warnings: the
408+
// runner's success toast on its warning variant, the warnings under the
409+
// title, the Undo button kept (the same toast a record save raises).
410+
if (options?.type === 'warning') {
411+
toast.warning(message, {
412+
duration: options.duration,
413+
...(options.description ? { description: options.description } : {}),
414+
...(options.undo
415+
? { action: { label: options.undo.label || 'Undo', onClick: () => { void undoCtl.undo(); } } }
416+
: {}),
417+
});
418+
return;
419+
}
407420
if (options?.undo) {
408421
toast.success(message, {
409422
duration: options.duration,

‎ui/packages/app-shell/src/views/RecordDetailView.tsx‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1946,8 +1946,21 @@ export function RecordDetailView({ dataSource, objects, onEdit, objectNameOverri
19461946
},
19471947
});
19481948

1949-
const toastHandler = useCallback((message: string, options?: { type?: string; duration?: number; undo?: { label?: string } }) => {
1949+
const toastHandler = useCallback((message: string, options?: { type?: string; duration?: number; description?: string; undo?: { label?: string } }) => {
19501950
if (options?.type === 'error') { toast.error(message); return; }
1951+
// objectstack#37867 — a write that went through with warnings: the
1952+
// runner's success toast on its warning variant, the warnings under the
1953+
// title, the Undo button kept (the same toast a record save raises).
1954+
if (options?.type === 'warning') {
1955+
toast.warning(message, {
1956+
duration: options.duration,
1957+
...(options.description ? { description: options.description } : {}),
1958+
...(options.undo
1959+
? { action: { label: options.undo.label || 'Undo', onClick: () => { void undoCtl.undo(); } } }
1960+
: {}),
1961+
});
1962+
return;
1963+
}
19511964
if (options?.undo) {
19521965
toast.success(message, {
19531966
duration: options.duration,

0 commit comments

Comments
 (0)