mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
fix(app/edge): race between redirects when selecting a template (#12230)
This commit is contained in:
parent
d647980c3a
commit
61353cbe8a
2 changed files with 11 additions and 5 deletions
|
@ -92,7 +92,7 @@ function getTemplateValues(
|
|||
type: 'custom' | 'app' | undefined,
|
||||
template: TemplateViewModel | CustomTemplate | undefined
|
||||
): TemplateValues {
|
||||
if (!type) {
|
||||
if (!type || !template) {
|
||||
return getInitialTemplateValues();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue