Skip to content

Commit

Permalink
Bug Fix: Only override forceSvg from localStorage when the key is pre…
Browse files Browse the repository at this point in the history
…sent (tensorflow#5834)

only override forceSVG from localStorage when the key is present
  • Loading branch information
rileyajones authored and dna2github committed May 1, 2023
1 parent 23b7921 commit 4d8ab9b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export class FeatureFlagEffects {

if (features.forceSvg != null) {
this.forceSvgDataSource.updateForceSvgFlag(features.forceSvg);
} else {
features.forceSvg = this.forceSvgDataSource.getForceSvgFlag();
} else if (this.forceSvgDataSource.getForceSvgFlag()) {
features.forceSvg = true;
}

return partialFeatureFlagsLoaded({features});
Expand Down

0 comments on commit 4d8ab9b

Please sign in to comment.