mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-07 18:25:09 +00:00
improved form version check
This commit is contained in:
parent
161ba04367
commit
a1169de915
@ -174,7 +174,7 @@ export class FormCloudService extends BaseCloudService {
|
|||||||
getForm(appName: string, formKey: string, version?: number): Observable<any> {
|
getForm(appName: string, formKey: string, version?: number): Observable<any> {
|
||||||
let url = `${this.getBasePath(appName)}/form/v1/forms/${formKey}`;
|
let url = `${this.getBasePath(appName)}/form/v1/forms/${formKey}`;
|
||||||
|
|
||||||
if (version !== undefined) {
|
if (version) {
|
||||||
url += `/versions/${version}`;
|
url += `/versions/${version}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user