Skip to content

Commit

Permalink
[frontend] Keep commands lines shown if another element is updated in…
Browse files Browse the repository at this point in the history
… atomic testing page

Signed-off-by: Damien Goujard <[email protected]>
  • Loading branch information
damgouj authored Sep 20, 2024
1 parent 457dc03 commit c04a750
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ const Index = () => {
const { injectId } = useParams() as { injectId: InjectResultDTO['inject_id'] };
const [injectResultDto, setInjectResultDto] = useState<InjectResultDTO>();

const updateInjectResultDto = (newData: InjectResultDTO) => {
setInjectResultDto(newData);
const updateInjectResultDto = () => {
fetchInjectResultDto(injectId).then((result: { data: InjectResultDTO }) => {
setInjectResultDto(result.data);
});
};

useEffect(() => {
Expand Down

0 comments on commit c04a750

Please sign in to comment.