Skip to content

fix: load empty files upon opening a fiddle#241

Merged
erickzhao merged 2 commits intomasterfrom
fix/load-empty-strings
Jul 30, 2019
Merged

fix: load empty files upon opening a fiddle#241
erickzhao merged 2 commits intomasterfrom
fix/load-empty-strings

Conversation

@erickzhao
Copy link
Copy Markdown
Member

Fixes #180.

Previously, the code would avoid overwriting the editor file with editor.setValue() if values[name] was falsy. However, since Boolean('') evaluates to false, empty strings would not be set.

This solves an edge case with Saved Fiddles with missing files or Show Me's that didn't require all 3 files.

@erickzhao erickzhao requested a review from felixrieseberg July 26, 2019 22:17
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 26, 2019

Coverage Status

Coverage decreased (-0.009%) to 97.106% when pulling 14628f9 on fix/load-empty-strings into 7272ec7 on master.

@erickzhao erickzhao merged commit 7267a2e into master Jul 30, 2019
@erickzhao erickzhao deleted the fix/load-empty-strings branch July 30, 2019 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Old files showing

3 participants