From 38c2f37c1adcb5b3c820a1f8b116d88174db5a95 Mon Sep 17 00:00:00 2001 From: Debora Crescenzo Date: Tue, 10 Jun 2025 18:07:45 +0100 Subject: [PATCH] MT#62983 bugfix apiGet and apiPost apiGet and apiPost assign the full options object to the variable path rather then options.path In this commit we fix the bug. Change-Id: I2379c4038a7fb70183ad2c6a25252413895122ad --- src/api/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/common.js b/src/api/common.js index 233bacfd..4bcfb249 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -363,7 +363,7 @@ export async function apiGet (options = { resourceId: undefined, config: {} }) { - let path = options + let path = options.path if (options.resource && options.resourceId) { path = `api/${options.resource}/${options.resourceId}` } else if (options.resource) { @@ -376,7 +376,7 @@ export async function apiPost (options = { data: undefined, config: {} }) { - let path = options + let path = options.path if (options.resource) { path = `${options.resource}/` }