Skip to content

Commit

Permalink
Fix coments and console log
Browse files Browse the repository at this point in the history
  • Loading branch information
nebojsajsimic committed Nov 25, 2024
1 parent 7e1ffb4 commit 7bc54d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions pdf-ui/src/components/EditProposalDialog/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ const EditProposalDialog = ({
}
};
const setDraftData = (proposalData) => {
console.table(proposalData);
const draft = {
proposal_id: proposalData?.id,
gov_action_type_id:
Expand Down Expand Up @@ -321,11 +320,9 @@ const EditProposalDialog = ({
useEffect(() => {
fetchGovernanceActionTypes();
}, []);

useEffect(() => {
setDraft(setDraftData(proposal));
}, [proposal]);
console.log(draft);
useEffect(() => {
handleIsSaveDisabled();
}, [draft, errors, linksErrors]);
Expand Down
4 changes: 2 additions & 2 deletions pdf-ui/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import App from './App.jsx';
function Root({ locale, ...props }) {
return (
// Lift up the Router to the Root component to allow consuming the package by the Apps that already includes a Router
// <BrowserRouter>
<BrowserRouter>
<App {...props} />
// </BrowserRouter>
</BrowserRouter>
);
}

Expand Down

0 comments on commit 7bc54d3

Please sign in to comment.