Skip to content

Commit 2be0006

Browse files
committed
fix: #142 clear extends on template selection
1 parent 57945af commit 2be0006

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/js/Pages/Services/Partials/TemplatePicker.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const form = reactive({
4848
const selectTemplate = async (template) => {
4949
form.errors = {};
5050
form.data = {};
51+
state.extends = [];
5152
5253
state.template = await (
5354
await fetch(props.marketplaceUrl + "/" + template.slug + ".json")
@@ -61,8 +62,6 @@ const selectTemplate = async (template) => {
6162
6263
state.extends.push(res);
6364
}
64-
} else {
65-
state.extends = [];
6665
}
6766
6867
state.step = "configure";

0 commit comments

Comments
 (0)