Spaces:
Runtime error
Runtime error
Ruben
commited on
Commit
·
3dc42f5
1
Parent(s):
9220f8c
updated files
Browse files
frontend/src/lib/ParamsSelector.svelte
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
import { selectedParams, generateMap } from '$lib/store';
|
4 |
import type { FormElements } from '../types';
|
5 |
import { randomSeed } from '$lib/utils';
|
6 |
-
|
7 |
function submit() {
|
8 |
const elements: FormElements = form.elements as FormElements;
|
9 |
$selectedParams = {
|
@@ -16,7 +16,7 @@
|
|
16 |
|
17 |
function updateModifier(event) {
|
18 |
const selectedIndex = event.currentTarget.selectedIndex;
|
19 |
-
modifier = PRESETS[selectedIndex][0];
|
20 |
submit();
|
21 |
}
|
22 |
|
|
|
3 |
import { selectedParams, generateMap } from '$lib/store';
|
4 |
import type { FormElements } from '../types';
|
5 |
import { randomSeed } from '$lib/utils';
|
6 |
+
|
7 |
function submit() {
|
8 |
const elements: FormElements = form.elements as FormElements;
|
9 |
$selectedParams = {
|
|
|
16 |
|
17 |
function updateModifier(event) {
|
18 |
const selectedIndex = event.currentTarget.selectedIndex;
|
19 |
+
modifier = PRESETS[selectedIndex-1][0];
|
20 |
submit();
|
21 |
}
|
22 |
|