File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ class EditView extends Component<typeof CodeRefField> {
76
76
};
77
77
78
78
private setIfValid = restartableTask (
79
- async (maybeCodeRef : string , args ? : { checkOnly? : true }) => {
79
+ async (maybeCodeRef : string , opts ? : { checkOnly? : true }) => {
80
80
this .validationState = ' initial' ;
81
81
if (maybeCodeRef .length === 0 ) {
82
- if (! args ?.checkOnly ) {
82
+ if (! opts ?.checkOnly ) {
83
83
this .args .set (undefined );
84
84
}
85
85
return ;
@@ -103,14 +103,14 @@ class EditView extends Component<typeof CodeRefField> {
103
103
},
104
104
);
105
105
this .validationState = ' valid' ;
106
- if (! args ?.checkOnly ) {
106
+ if (! opts ?.checkOnly ) {
107
107
this .args .set ({ module , name });
108
108
}
109
109
} else {
110
110
let code = (await import (module ))[name ];
111
111
if (code ) {
112
112
this .validationState = ' valid' ;
113
- if (! args ?.checkOnly ) {
113
+ if (! opts ?.checkOnly ) {
114
114
this .args .set ({ module , name });
115
115
}
116
116
} else {
You can’t perform that action at this time.
0 commit comments