Skip to content

Commit

Permalink
Default to html view (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
whscullin authored Nov 5, 2024
1 parent 390aefb commit 15e553b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/query-composer/src/components/Result/Result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ export const Result: React.FC<ResultProps> = ({
const [html, setHTML] = useState<HTMLElement>();
const [highlightedSource, setHighlightedSource] = useState<HTMLElement>();
const [sql, setSQL] = useState<HTMLElement>();
const [view, setView] = useState<'sql' | 'malloy' | 'html'>(
result ? 'html' : 'malloy'
);
const [view, setView] = useState<'sql' | 'malloy' | 'html'>('html');
const [copiedMalloy, setCopiedMalloy] = useState(false);
const [rendering, setRendering] = useState(false);
const [malloyType, setMalloyType] = useState<MalloyType>('notebook');
Expand Down

0 comments on commit 15e553b

Please sign in to comment.