mirror of
https://github.com/foomo/sesamy-cli.git
synced 2025-10-16 12:35:36 +00:00
fix: check nil
This commit is contained in:
parent
82d5b597f5
commit
898f63a1ad
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func TemplateType(template *tagmanager.CustomTemplate) string {
|
||||
if template.GalleryReference.GalleryTemplateId != "" {
|
||||
if template.GalleryReference != nil && template.GalleryReference.GalleryTemplateId != "" {
|
||||
return fmt.Sprintf("cvt_%s", template.GalleryReference.GalleryTemplateId)
|
||||
}
|
||||
return fmt.Sprintf("cvt_%s_%s", template.ContainerId, template.TemplateId)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user