Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit 14960ae

Browse files
Merge pull request #61 from stack-spot/feature/sc-387422/adequar-o-uso-de-stackfile-sem-template
Feature: Removed mandatory template in stackfile
2 parents bf12668 + c502f5e commit 14960ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/com/stackspot/intellij/services/StackSpotToolWindowService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class StackSpotToolWindowService {
5353

5454
private fun reloadHistoryData() {
5555
val appliedTemplates = history?.appliedTemplates
56-
if (appliedTemplates != null) {
56+
if (!appliedTemplates.isNullOrEmpty()) {
5757
template = appliedTemplates.first()
5858
appliedPlugins = appliedTemplates.subList(1, appliedTemplates.size)
5959
}

src/main/kotlin/com/stackspot/model/Stackfile.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package com.stackspot.model
1919
data class Stackfile(
2020
val type: String,
2121
val description: String,
22-
val template: String,
22+
val template: String?,
2323
val inputs: Map<String, Any>? = null,
2424
val plugins: List<StackfilePlugin>? = null
2525
) {

0 commit comments

Comments
 (0)