Skip to content

Commit 09fc974

Browse files
committed
reverse spread to ensure that properties from group overwrite those from basicLineParams
1 parent 1335847 commit 09fc974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/playground/create-a-reactive-line-chart/local-lib/LineChart.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
let defaultLineParams = Object.fromEntries(
185185
Object.entries(tieredLineParams).map(([key, group]) => [
186186
key,
187-
{ ...group, ...basicLineParams },
187+
{ ...basicLineParams, ...group },
188188
]),
189189
);
190190

0 commit comments

Comments
 (0)