Skip to content

Commit

Permalink
Merge pull request EGCETSII#56 from Full-Tortuga/fix/EGCETSII#20-temp…
Browse files Browse the repository at this point in the history
…oral-voting-linting-fix

EGCETSII#20-fix: temporal linting fix
  • Loading branch information
JSnow11 authored Dec 29, 2021
2 parents f725fca + 89f18ff commit 6ac8c36
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ const rows = [
];

const VotingsPage = () => {
//const [users, setVotings] = React.useState<votingType.Voting[]>([]);
const [votings, setVotings] = React.useState(rows);
const [votings, setVotings] = React.useState<votingType.Voting[]>(rows);

const [selected, setSelected] = React.useState([]);
const [refetch, setRefetch] = React.useState(false);
Expand Down Expand Up @@ -103,6 +102,9 @@ const VotingsPage = () => {
);

const handleDelete = () => {
// todo: remove this 2 lines and uncomment the lines after
console.log(idList);
refetchVotings();
// votingApi.deleteVotings(idList).then((response) => {
// console.log(response);
// refetchVotings();
Expand Down

0 comments on commit 6ac8c36

Please sign in to comment.