Merge pull request #4180 from BenJamesBen/yaml-edit-measurement-validation
fix(workbench): Accept measurement-less edited YAML for designs with no required measurements
This commit is contained in:
commit
fd0b0b0132
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class GistValidator {
|
|||
|
||||
/** check that the required measurements are all there and the correct type */
|
||||
validateMeasurements() {
|
||||
if (!this.givenGist.measurements) {
|
||||
if (!this.givenGist.measurements && this.design.patternConfig.measurements.length) {
|
||||
this.errors.measurements = 'MissingMeasurements'
|
||||
this.valid = false
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue