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

fix(edge/stacks): fix ui issues [EE-5578] (#9070)

This commit is contained in:
Chaim Lev-Ari 2023-06-22 21:08:04 +07:00 committed by GitHub
parent 3d22cde096
commit 2cd5d55b00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 56 additions and 35 deletions

View file

@ -31,9 +31,13 @@ export async function createStackFromFileContent({
...payload
}: FileContentPayload) {
try {
const { data } = await axios.post<EdgeStack>(buildUrl(), payload, {
params: { method: 'string', dryrun: dryRun ? 'true' : 'false' },
});
const { data } = await axios.post<EdgeStack>(
buildUrl(undefined, 'create/string'),
payload,
{
params: { dryrun: dryRun ? 'true' : 'false' },
}
);
return data;
} catch (e) {
throw parseAxiosError(e as Error);