Skip to content

Commit

Permalink
Added cache key, removed toggle icon if no children
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickseguraoddball committed Dec 5, 2024
1 parent 6b7b45a commit b69495b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ const client = new ApolloClient({
OperationalSolution: {
keyFields: ['key', 'nameOther', 'id']
},
MTOSubcategory: {
keyFields: ['milestones']
},
LockableSectionLockStatus: {
keyFields: ['lockedByUserAccount', ['id'], 'section', 'modelPlanID']
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ export const columns: ColumnType[] = [
Cell: ({ row, rowType, expanded }: RowProps) => {
const { riskIndicator } = row;

if ('subCategories' in row) {
if (row.subCategories.length === 0) return <></>;
}

if ('milestones' in row) {
if (row.milestones.length === 0) return <></>;
}

if (rowType !== 'milestone')
return (
<span style={{ fontSize: '1.25rem' }} className="margin-left-05">
Expand Down

0 comments on commit b69495b

Please sign in to comment.