oasis4hedev / salsa

Web app for creating a syllabus in an accessible HTML document, publishing to the Canvas LMS, and more.
https://syllabustool.com
Other
6 stars 5 forks source link

bugfix/don't override existing data when the dynamic data returns a blank string #580

Closed opsaaaaa closed 4 years ago

opsaaaaa commented 4 years ago

before: when the dynamic data returned a blank string it would override any existing text in the element with {{<data-dynamic-attribute>}}. now: when the dynamic data returns a blank string it checks if the element text is blank if so it sets the field to {{<data-dynamic-attribute>}} else it dose nothing.