Skip to content

Commit f44a102

Browse files
committed
Updated docs version
1 parent 8464e03 commit f44a102

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/src/components/parse-soql.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ export class ParseSoql extends React.Component<IParseSoqlProps, IParseSoqlState>
7171
try {
7272
format = typeof format === 'boolean' ? format : this.state.format;
7373
const parsedSoql: Query = parseQuery(query || this.state.soql);
74-
const composedQuery: string = composeQuery(parsedSoql, { format, formatOptions });
74+
const composedQuery: string = composeQuery(parsedSoql, {
75+
format: format || this.state.format,
76+
formatOptions: formatOptions || this.state.formatOptions,
77+
});
7578
this.setState({
7679
parsedSoql: JSON.stringify(parsedSoql, null, 4),
7780
composedQuery,

0 commit comments

Comments
 (0)