Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Custom root folders are just added to existing root folders when set. #588

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

KevinJump
Copy link
Owner

When you have arrays in the appsettings they are cumulative (so they add to the default values).

This fix.

  • Makes the 'default' value be an empty array.
  • Uses post configure to add the default values to the array if its empty.

so.

"uSync": {
  "Settings": {
    "Folders":  ["uSync/main", "uSync/Site"],
  }
}

will now only set two folders not four.

@KevinJump
Copy link
Owner Author

KevinJump commented Feb 20, 2024

#587

@KevinJump KevinJump merged commit 4718cf5 into v13/main Feb 20, 2024
2 checks passed
@KevinJump KevinJump deleted the v13/root-folders-fix branch February 20, 2024 11:08
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.

1 participant