From 10973db52f17e6f16b53a68d8ab8c3feacf5147c Mon Sep 17 00:00:00 2001 From: "ITHQ1947\\saritha.pillai" Date: Mon, 9 Sep 2024 10:42:55 +0530 Subject: [PATCH] D-cog changes --- .../Researcher/ActivityList/ActivityMethods.ts | 9 +++++++++ src/components/Researcher/ActivityList/AddActivity.tsx | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/Researcher/ActivityList/ActivityMethods.ts b/src/components/Researcher/ActivityList/ActivityMethods.ts index 8ffa78cb..5669caf8 100644 --- a/src/components/Researcher/ActivityList/ActivityMethods.ts +++ b/src/components/Researcher/ActivityList/ActivityMethods.ts @@ -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: { diff --git a/src/components/Researcher/ActivityList/AddActivity.tsx b/src/components/Researcher/ActivityList/AddActivity.tsx index 7a53665d..8da30287 100644 --- a/src/components/Researcher/ActivityList/AddActivity.tsx +++ b/src/components/Researcher/ActivityList/AddActivity.tsx @@ -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))