fix unintentional inactivation of local storage settings

This commit is contained in:
byte[] 2020-01-01 11:05:44 -05:00
parent 44f2ebdbb6
commit bdee305936
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ export function setupSettings() {
localCheckboxes.forEach(checkbox => { localCheckboxes.forEach(checkbox => {
checkbox.checked = Boolean(store.get(checkbox.id)); checkbox.checked = Boolean(store.get(checkbox.id));
checkbox.addEventListener('change', () => { checkbox.addEventListener('change', () => {
store.set(checkbox.id, checkbox.checked); store.set(checkbox.id.replace('user_', ''), checkbox.checked);
}); });
}); });

View file

@ -266,7 +266,7 @@ defmodule Philomena.Galleries do
Repo.insert_all( Repo.insert_all(
Interaction, Interaction,
changes, changes,
on_conflict: {:replace_all_except, [:id]}, on_conflict: {:replace, [:position]},
conflict_target: [:id] conflict_target: [:id]
) )