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.
2 parents cfafade + 412d836 commit 02c7a61Copy full SHA for 02c7a61
src/stories/GitHubCommitStory.tsx
@@ -1,4 +1,4 @@
1
-import React, { useState } from "react";
+import React, { useEffect, useState } from "react";
2
import css from "./index.module.css";
3
import Graph from "./Graph";
4
import { Diff, GraphStyle } from "../helpers/types";
@@ -40,6 +40,7 @@ function CustomizedGitHubCommitStory(props: CustomizedGitHubCommitStoryProps) {
40
placeholder="OwnerName"
41
onChange={e => {
42
setError("");
43
+ setLoadGraph(false);
44
setOwnerName(e.target.value);
45
}}
46
/>
@@ -48,6 +49,7 @@ function CustomizedGitHubCommitStory(props: CustomizedGitHubCommitStoryProps) {
48
49
placeholder="RepoName"
50
51
52
53
setRepoName(e.target.value);
54
55
0 commit comments