onshore-forms 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -197,10 +197,10 @@ class OnshoreFormsService {
197
197
  }));
198
198
  });
199
199
  }
200
- lock() {
200
+ lock(lockSubfields = true) {
201
201
  this._formTemplate.forEach((item) => {
202
202
  item.locked = true;
203
- if (item.subformArray) {
203
+ if (item.subformArray && lockSubfields) {
204
204
  item.subformArray.forEach(subitem => {
205
205
  subitem.locked = true;
206
206
  });