mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-03-01 01:40:42 +00:00
apiPath does not need an extra slash now
This commit is contained in:
parent
d32f86300f
commit
639ba78037
@ -286,7 +286,7 @@ export default function Extension({
|
|||||||
if (pageComponent && pageComponent.on_form_submit) {
|
if (pageComponent && pageComponent.on_form_submit) {
|
||||||
apiPathRaw = pageComponent.on_form_submit.api_path.replace(/^\/?/, '/');
|
apiPathRaw = pageComponent.on_form_submit.api_path.replace(/^\/?/, '/');
|
||||||
if (!pageComponent.on_form_submit.is_full_api_path) {
|
if (!pageComponent.on_form_submit.is_full_api_path) {
|
||||||
apiPathRaw = `${targetUris.extensionListPath}/${apiPathRaw}`;
|
apiPathRaw = `${targetUris.extensionListPath}${apiPathRaw}`;
|
||||||
} else {
|
} else {
|
||||||
postBody = dataToSubmit;
|
postBody = dataToSubmit;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user