fix: odstranění matoucích chybových hlášek z dialogu Správa obchodů
CI / Generate TypeScript types (push) Successful in 10s
CI / Server unit tests (push) Successful in 26s
CI / Build server (push) Successful in 28s
CI / Build client (push) Successful in 41s
CI / Playwright E2E tests (push) Successful in 1m47s
CI / Build and push Docker image (push) Successful in 45s
CI / Notify (push) Successful in 2s
CI / Generate TypeScript types (push) Successful in 10s
CI / Server unit tests (push) Successful in 26s
CI / Build server (push) Successful in 28s
CI / Build client (push) Successful in 41s
CI / Playwright E2E tests (push) Successful in 1m47s
CI / Build and push Docker image (push) Successful in 45s
CI / Notify (push) Successful in 2s
This commit is contained in:
@@ -42,10 +42,9 @@ export default function StoreAdminModal({ isOpen, onClose, stores, onStoresChang
|
||||
const setUrlAt = (urls: string[], index: number, value: string) =>
|
||||
urls.map((u, i) => (i === index ? value : u));
|
||||
|
||||
/** Zpracuje odpověď API — vrací true při úspěchu. */
|
||||
/** Zpracuje odpověď API — vrací true při úspěchu. Chybu z API hlásí globální toaster. */
|
||||
const applyResult = (res: { data?: unknown; error?: unknown }): boolean => {
|
||||
if (res.error) {
|
||||
setError((res.error as any).error || 'Nastala chyba');
|
||||
return false;
|
||||
}
|
||||
if (res.data) {
|
||||
|
||||
Reference in New Issue
Block a user