File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
site/src/xServices/createTemplate Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ export const createTemplateMachine =
121
121
UPLOAD_FILE : {
122
122
actions : [ "assignFile" ] ,
123
123
target : "uploading" ,
124
- cond : "isFromScratch " ,
124
+ cond : "isNotUsingExample " ,
125
125
} ,
126
126
REMOVE_FILE : {
127
127
actions : [ "removeFile" ] ,
@@ -381,7 +381,7 @@ export const createTemplateMachine =
381
381
} ,
382
382
guards : {
383
383
isExampleProvided : ( { exampleId } ) => exampleId !== undefined ,
384
- isFromScratch : ( { exampleId } ) => exampleId === undefined ,
384
+ isNotUsingExample : ( { exampleId } ) => exampleId === undefined ,
385
385
hasFile : ( { file } ) => file !== undefined ,
386
386
hasFailed : ( _ , { data } ) => data . job . status === "failed" ,
387
387
hasMissingParameters : ( _ , { data } ) =>
You can’t perform that action at this time.
0 commit comments