diff --git a/src/components/views/sul-people/sul-people-table-view.tsx b/src/components/views/sul-people/sul-people-table-view.tsx index 16f1bc79..24b9e9f2 100644 --- a/src/components/views/sul-people/sul-people-table-view.tsx +++ b/src/components/views/sul-people/sul-people-table-view.tsx @@ -53,8 +53,10 @@ const SulPeopleTableView = ({items, hasHeading}: Props) => { const existingIndex = newState.indexOf(type) if (existingIndex >= 0) { newState.splice(existingIndex, 1) + console.log("newState splice line") } else { newState.push(type) + console.log("newState push (type) line") } return newState }) @@ -123,7 +125,7 @@ const SulPeopleTableView = ({items, hasHeading}: Props) => { checked={!typeFilter.length} onChange={() => updateTypeFilter()} /> - + All @@ -134,7 +136,7 @@ const SulPeopleTableView = ({items, hasHeading}: Props) => { checked={typeFilter.includes("subject specialist")} onChange={() => updateTypeFilter("subject specialist")} /> - + Subject specialists @@ -145,7 +147,7 @@ const SulPeopleTableView = ({items, hasHeading}: Props) => { checked={typeFilter.includes("technical specialist")} onChange={() => updateTypeFilter("technical specialist")} /> - + Technical specialists