Skip to content

Commit

Permalink
Merge pull request #815 from BIDMCDigitalPsychiatry/issue-783
Browse files Browse the repository at this point in the history
remove unwanted imports and remove filtering for deleted users
  • Loading branch information
sarithapillai8 authored May 8, 2024
2 parents 1518690 + 7724d8f commit c4589cd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/components/PreventData.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
// Core Imports
import React from "react"
import { Typography, makeStyles, Box, Grid, colors, CardContent } from "@material-ui/core"
import LAMP, { Participant as ParticipantObj, Activity as ActivityObj } from "lamp-core"
import LAMP, { Activity as ActivityObj } from "lamp-core"
import Sparkline from "./Sparkline"
import ActivityCard from "./ActivityCard"
import { useTranslation } from "react-i18next"
import ReactMarkdown from "react-markdown"
import emoji from "remark-emoji"
import gfm from "remark-gfm"

const useStyles = makeStyles((theme) => ({
root: {
Expand Down
1 change: 0 additions & 1 deletion src/components/PreventSelectedActivities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import fr from "javascript-time-ago/locale/fr"
import TimeAgo from "javascript-time-ago"
import { useTranslation } from "react-i18next"
import { VegaLite } from "react-vega"
import { dateTimeToTimestamp } from "vega-lite/build/src/datetime"
TimeAgo.addLocale(en)
const timeAgo = new TimeAgo("en-US")

Expand Down
2 changes: 1 addition & 1 deletion src/components/Researcher/ParticipantList/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export default function ParticipantList({
const selectedData = selected.filter((o) => studies.some(({ name }) => o === name))
if (selectedData.length > 0) {
Service.getAll("participants").then((participantData) => {
participantData = (participantData || []).filter((p) => p.is_deleted != true)
// participantData = (participantData || []).filter((p) => p.is_deleted != true)
if (!!searchTxt && searchTxt.trim().length > 0) {
participantData = (participantData || []).filter(
(i) => i.name?.includes(searchTxt) || i.id?.includes(searchTxt)
Expand Down

0 comments on commit c4589cd

Please sign in to comment.