Skip to content

Commit

Permalink
Merge pull request #830 from BIDMCDigitalPsychiatry/d-cog
Browse files Browse the repository at this point in the history
D-cog changes
  • Loading branch information
sarithapillai8 authored Sep 9, 2024
2 parents aa83d0c + 10973db commit 63133d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/components/Researcher/ActivityList/ActivityMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,15 @@ export const SchemaList = () => {
},
},
},
"lamp.dcog": {
type: "object",
properties: {
settings: {
title: i18n.t("Activity Settings"),
type: "object",
},
},
},
"lamp.cats_and_dogs_new": {
type: "object",
properties: {
Expand Down
1 change: 0 additions & 1 deletion src/components/Researcher/ActivityList/AddActivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ export default function AddActivity({

useEffect(() => {
;(async () => {
LAMP.ActivitySpec.create({ name: "lamp.dcog" })
const allSpecs = await LAMP.ActivitySpec.all()
let availableSpecs = allSpecs.filter((x: any) => Object.keys(activitiesObj).includes(x?.id))
let otherSpecs = allSpecs.filter((x: any) => !Object.keys(activitiesObj).includes(x?.id))
Expand Down

0 comments on commit 63133d3

Please sign in to comment.