mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
fix unintentional inactivation of local storage settings
This commit is contained in:
parent
44f2ebdbb6
commit
bdee305936
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ export function setupSettings() {
|
|||
localCheckboxes.forEach(checkbox => {
|
||||
checkbox.checked = Boolean(store.get(checkbox.id));
|
||||
checkbox.addEventListener('change', () => {
|
||||
store.set(checkbox.id, checkbox.checked);
|
||||
store.set(checkbox.id.replace('user_', ''), checkbox.checked);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -266,7 +266,7 @@ defmodule Philomena.Galleries do
|
|||
Repo.insert_all(
|
||||
Interaction,
|
||||
changes,
|
||||
on_conflict: {:replace_all_except, [:id]},
|
||||
on_conflict: {:replace, [:position]},
|
||||
conflict_target: [:id]
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue