mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Reset the start command from the framework select, not the effect
The effect is skipped whenever the URL supplied any command, so a deploy link carrying ?start= kept that entrypoint through a framework switch. Resetting inside the effect could not fix it either: the effect also runs on load, where the URL value has to survive. Move the reset onto the select, so only a user changing framework clears it and the link keeps working as written.
This commit is contained in:
1 parent
a175d022e2
commit
58b37773f3
1 file changed
+2
-2
+2
-2
@@ -94,7 +94,6 @@
|
||||
installCommand = adapter.installCommand || '';
|
||||
buildCommand = adapter.buildCommand || '';
|
||||
outputDirectory = adapter.outputDirectory || '';
|
||||
startCommand = '';
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -262,7 +261,8 @@
|
||||
label="Framework"
|
||||
placeholder="Select framework"
|
||||
bind:value={framework}
|
||||
options={frameworkSelectOptions} />
|
||||
options={frameworkSelectOptions}
|
||||
on:change={() => (startCommand = '')} />
|
||||
</Layout.Stack>
|
||||
</Fieldset>
|
||||
|
||||
|
||||
Reference in new issue
Block a user