1
0
Fork 0

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:
Enoch Riese 2023-06-06 16:10:59 -05:00 committed by GitHub
commit fd0b0b0132
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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