1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 23:09:41 +02:00

chore(deps): upgrade axios [EE-6488] (#10885)

Co-authored-by: Matt Hook <hookenz@gmail.com>
This commit is contained in:
Chaim Lev-Ari 2024-01-02 13:26:54 +07:00 committed by GitHub
parent 4c226d7a17
commit a1519ba737
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 116 additions and 57 deletions

View file

@ -1,5 +1,5 @@
import { useMutation, useQueryClient } from 'react-query';
import { AxiosRequestHeaders } from 'axios';
import { RawAxiosRequestHeaders } from 'axios';
import axios, { parseAxiosError } from '@/portainer/services/axios';
import {
@ -282,7 +282,7 @@ async function createContainer(
{ nodeName }: { nodeName?: string } = {}
) {
try {
const headers: AxiosRequestHeaders = {};
const headers: RawAxiosRequestHeaders = {};
if (nodeName) {
headers['X-PortainerAgent-Target'] = nodeName;