mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
improved form version check
This commit is contained in:
@@ -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}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user