improved form version check

This commit is contained in:
Denys Vuika 2019-11-15 11:36:19 +00:00
parent 161ba04367
commit a1169de915

View File

@ -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}`;
} }