1
0
Fork 0
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:
LP B 2024-09-20 16:00:40 +02:00 committed by GitHub
parent d647980c3a
commit 61353cbe8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 5 deletions

View file

@ -92,7 +92,7 @@ function getTemplateValues(
type: 'custom' | 'app' | undefined,
template: TemplateViewModel | CustomTemplate | undefined
): TemplateValues {
if (!type) {
if (!type || !template) {
return getInitialTemplateValues();
}