Skip to content

Commit

Permalink
Compatible with the original static image mode
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyixin-cmd authored Jun 28, 2022
1 parent 5b9dacf commit 15dbace
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions frontend/packages/core/src/pages/graphDynamic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,6 @@ const Graph: FunctionComponent = () => {

const [rendered, setRendered] = useState(false);

const content = (runs: string) => {
return <div>{runs}</div>;
// return (<p>Content</p>)
};

const aside = useMemo(() => {
if (!rendered) {
return null;
Expand Down Expand Up @@ -318,6 +313,7 @@ const Graph: FunctionComponent = () => {
t,
bottom,
search,
runs,
searching,
searchResult,
selectedRuns,
Expand Down
2 changes: 1 addition & 1 deletion frontend/packages/core/src/pages/graphStatic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const Graph: FunctionComponent = () => {
[setModelFile]
);

const {data, loading} = useRequest<BlobResponse>(files ? null : '/graph/graph');
const {data, loading} = useRequest<BlobResponse>(files ? null : '/graph/static_graph');

useEffect(() => {
if (data?.data?.size) {
Expand Down

0 comments on commit 15dbace

Please sign in to comment.