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

Revert "Remove duplicated code as it is already part of utils.stateLoadCallback" #1975

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

yubiuser
Copy link
Member

@yubiuser yubiuser commented Nov 14, 2021

This reverts commit 395b1b6.

  • I have read and understood the contributors guide, as well as this entire template.
  • I have made only one major change in my proposed changes.
  • I have commented my proposed changes within the code.
  • I have tested my proposed changes.
  • I am willing to help maintain this change if there are issues with it later.
  • I give this submission freely and claim no ownership.
  • It is compatible with the EUPL 1.2 license
  • I have squashed any insignificant commits. (git rebase)
  • I have Signed Off all commits. (git commit --signoff)

What does this PR aim to accomplish?:

Commit 395b1b6 (part of #1944) removed an important if clause that returned null if the specific data was not found in the LocalStorage of the browser.
E.g. this is the case when Pi-hole web GUI is opened the first time.

Without the revert, the tables wont load properly. Reason is that non-existing data can not be modified.

Bildschirmfoto zu 2021-11-13 12-51-02

How does this PR accomplish the above?:

Revert the commit.

…adCallback"

This reverts commit 395b1b6.

Signed-off-by: Christian König <[email protected]>
@yubiuser yubiuser added Bugfix PR: Approval Required Open Pull Request, needs approval labels Nov 14, 2021
@DL6ER DL6ER merged commit 1437f7f into devel Nov 16, 2021
@DL6ER DL6ER deleted the fix/localStorage branch November 16, 2021 19:44
@DL6ER DL6ER mentioned this pull request Dec 22, 2021
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/pi-hole-ftl-v5-12-web-v5-9-and-core-v5-7-released/51795/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix PR: Approval Required Open Pull Request, needs approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants