()
| 379 | }; |
| 380 | |
| 381 | const saveAdr = async (): Promise<void> => { |
| 382 | try { |
| 383 | await source.saveAdr(project, adrDraft); |
| 384 | if (!mounted.current) { |
| 385 | return; |
| 386 | } |
| 387 | setAdrNotice(text.adrSaved); |
| 388 | void loadAdr(); |
| 389 | } catch (error) { |
| 390 | if (!mounted.current) { |
| 391 | return; |
| 392 | } |
| 393 | if (error instanceof AtlasApiError && error.status === 423) { |
| 394 | setAdrNotice(text.adrBusy); |
| 395 | } else { |
| 396 | setAdrNotice(text.adrError(describeError(error))); |
| 397 | } |
| 398 | } |
| 399 | }; |
| 400 | |
| 401 | const canStart = path.trim().length > 0 && name.trim().length > 0; |
| 402 | const others = processes?.processes.filter((entry) => !entry.isSelf) ?? []; |
no test coverage detected