mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
fix(errors): surface react docker errors to front end [EE-7053] (#11726)
Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
55667a878a
commit
6b5a402962
17 changed files with 107 additions and 142 deletions
|
@ -6,7 +6,7 @@ import { genericHandler } from '@/docker/rest/response/handlers';
|
|||
|
||||
import { ContainerId } from '../types';
|
||||
import { urlBuilder } from '../containers.service';
|
||||
import { addNodeName } from '../../proxy/addNodeName';
|
||||
import { addNodeHeader } from '../../proxy/addNodeHeader';
|
||||
|
||||
import { queryKeys } from './query-keys';
|
||||
import { ContainerJSON } from './container';
|
||||
|
@ -30,7 +30,7 @@ export async function inspectContainer(
|
|||
try {
|
||||
const { data } = await axios.get<ContainerJSON>(
|
||||
urlBuilder(environmentId, id, 'json'),
|
||||
{ transformResponse: genericHandler, headers: addNodeName(nodeName) }
|
||||
{ transformResponse: genericHandler, headers: addNodeHeader(nodeName) }
|
||||
);
|
||||
return data;
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue