fix: don't copy custom preferences to default preferences
This commit is contained in:
parent
969e06e31e
commit
dc73f8e3b1
|
@ -17,7 +17,7 @@
|
||||||
let pronouns: string | undefined;
|
let pronouns: string | undefined;
|
||||||
|
|
||||||
let mergedPreferences: CustomPreferences;
|
let mergedPreferences: CustomPreferences;
|
||||||
$: mergedPreferences = Object.assign(defaultPreferences, user.custom_preferences);
|
$: mergedPreferences = Object.assign({}, defaultPreferences, user.custom_preferences);
|
||||||
|
|
||||||
const getPronouns = (member: PartialMember) => {
|
const getPronouns = (member: PartialMember) => {
|
||||||
const filteredPronouns = member.pronouns.filter(
|
const filteredPronouns = member.pronouns.filter(
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
export let className: string | null = null;
|
export let className: string | null = null;
|
||||||
|
|
||||||
let mergedPreferences: CustomPreferences;
|
let mergedPreferences: CustomPreferences;
|
||||||
$: mergedPreferences = Object.assign(defaultPreferences, preferences);
|
$: mergedPreferences = Object.assign({}, defaultPreferences, preferences);
|
||||||
|
|
||||||
let currentPreference: CustomPreference;
|
let currentPreference: CustomPreference;
|
||||||
$: currentPreference =
|
$: currentPreference =
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
export let status: string;
|
export let status: string;
|
||||||
|
|
||||||
let mergedPreferences: CustomPreferences;
|
let mergedPreferences: CustomPreferences;
|
||||||
$: mergedPreferences = Object.assign(defaultPreferences, preferences);
|
$: mergedPreferences = Object.assign({}, defaultPreferences, preferences);
|
||||||
|
|
||||||
let currentPreference: CustomPreference;
|
let currentPreference: CustomPreference;
|
||||||
$: currentPreference =
|
$: currentPreference =
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
let mergedPreferences: CustomPreferences;
|
let mergedPreferences: CustomPreferences;
|
||||||
$: mergedPreferences = Object.assign(defaultPreferences, data.custom_preferences);
|
$: mergedPreferences = Object.assign({}, defaultPreferences, data.custom_preferences);
|
||||||
|
|
||||||
let favNames: FieldEntry[];
|
let favNames: FieldEntry[];
|
||||||
$: favNames = data.names.filter(
|
$: favNames = data.names.filter(
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
$: bio = renderMarkdown(data.bio);
|
$: bio = renderMarkdown(data.bio);
|
||||||
|
|
||||||
let mergedPreferences: CustomPreferences;
|
let mergedPreferences: CustomPreferences;
|
||||||
$: mergedPreferences = Object.assign(defaultPreferences, data.user.custom_preferences);
|
$: mergedPreferences = Object.assign({}, defaultPreferences, data.user.custom_preferences);
|
||||||
|
|
||||||
let favNames: FieldEntry[];
|
let favNames: FieldEntry[];
|
||||||
$: favNames = data.names.filter(
|
$: favNames = data.names.filter(
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
let buttonElement: HTMLElement;
|
let buttonElement: HTMLElement;
|
||||||
|
|
||||||
let mergedPreferences: CustomPreferences;
|
let mergedPreferences: CustomPreferences;
|
||||||
$: mergedPreferences = Object.assign(defaultPreferences, preferences);
|
$: mergedPreferences = Object.assign({}, defaultPreferences, preferences);
|
||||||
|
|
||||||
let currentPreference: CustomPreference;
|
let currentPreference: CustomPreference;
|
||||||
$: currentPreference =
|
$: currentPreference =
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
const toggleDisplay = () => (displayOpen = !displayOpen);
|
const toggleDisplay = () => (displayOpen = !displayOpen);
|
||||||
|
|
||||||
let mergedPreferences: CustomPreferences;
|
let mergedPreferences: CustomPreferences;
|
||||||
$: mergedPreferences = Object.assign(defaultPreferences, preferences);
|
$: mergedPreferences = Object.assign({}, defaultPreferences, preferences);
|
||||||
|
|
||||||
let currentPreference: CustomPreference;
|
let currentPreference: CustomPreference;
|
||||||
$: currentPreference =
|
$: currentPreference =
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
let buttonElement: HTMLElement;
|
let buttonElement: HTMLElement;
|
||||||
|
|
||||||
let mergedPreferences: CustomPreferences;
|
let mergedPreferences: CustomPreferences;
|
||||||
$: mergedPreferences = Object.assign(defaultPreferences, preferences);
|
$: mergedPreferences = Object.assign({}, defaultPreferences, preferences);
|
||||||
|
|
||||||
let currentPreference: CustomPreference;
|
let currentPreference: CustomPreference;
|
||||||
$: currentPreference =
|
$: currentPreference =
|
||||||
|
|
Loading…
Reference in New Issue