mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 16:19:01 +00:00
style(work-orders): format editable WO number cell for Prettier gate
This commit is contained in:
parent
0153187a0b
commit
b3a4f31db1
1 changed files with 1 additions and 2 deletions
|
|
@ -95,8 +95,7 @@ export function EditableWONumberCell({
|
|||
try {
|
||||
const local = findDuplicateWoNumberRow(draft, allOrders, currentId);
|
||||
const remote = local ?? (await workOrdersApi.findByWoNumber(draft));
|
||||
const duplicate =
|
||||
remote && String(remote.id) !== String(currentId) ? remote : undefined;
|
||||
const duplicate = remote && String(remote.id) !== String(currentId) ? remote : undefined;
|
||||
if (duplicate) {
|
||||
onDuplicateFound?.(duplicate);
|
||||
setDraft(value);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue