Skip to content

Commit

Permalink
fix table view
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Feb 22, 2024
1 parent 94473ef commit 4eaa922
Showing 1 changed file with 31 additions and 29 deletions.
60 changes: 31 additions & 29 deletions apps/astraplusplus/widget/DAO/Proposals/Table/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,36 +159,38 @@ return (
</thead>
<tbody>
{proposals !== null &&
proposals.map(({ proposal, proposal_type, proposal_id }, i) => {
if (!isCongressDaoID && !isVotingBodyDao) {
proposal.kind = {
[proposal_type]: {
...proposal.kind
}
};
proposals.map(
({ proposal, proposal_type, proposal_id, dao_id }, i) => {
if (!isCongressDaoID && !isVotingBodyDao) {
proposal.kind = {
[proposal_type]: {
...proposal.kind
}
};
}
proposal.id = proposal_id;
if (proposal.status === "Removed") return <></>;
return (
<Widget
src="/*__@appAccount__*//widget/DAO.Proposals.Table.Row"
props={{
proposal,
proposal_type,
proposal_id,
i,
daoId: daoId ?? dao_id,
multiSelectMode,
isAllowedTo,
isCongressDaoID,
isVotingBodyDao,
daoConfig,
isHuman,
dev: props.dev
}}
/>
);
}
proposal.id = proposal_id;
if (proposal.status === "Removed") return <></>;
return (
<Widget
src="/*__@appAccount__*//widget/DAO.Proposals.Table.Row"
props={{
proposal,
proposal_type,
proposal_id,
i,
daoId,
multiSelectMode,
isAllowedTo,
isCongressDaoID,
isVotingBodyDao,
daoConfig,
isHuman,
dev: props.dev
}}
/>
);
})}
)}
</tbody>
</table>
)}
Expand Down

0 comments on commit 4eaa922

Please sign in to comment.