We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1810f9b commit 4efa78bCopy full SHA for 4efa78b
packages/react-openapi/src/util/tryit-prefill.ts
@@ -33,9 +33,10 @@ export function resolveTryItPrefillForOperation(args: {
33
34
const runtime = new ExpressionRuntime();
35
const resolveTryItPrefillExpression = (expr: string) => {
36
- if (!prefillInputContext) return undefined;
37
const parts = parseTemplate(expr);
38
- if (!parts.length) return undefined;
+ if (!parts.length) {
+ return undefined;
39
+ }
40
return runtime.evaluateTemplate(expr, prefillInputContext);
41
};
42
0 commit comments