diff --git a/src/shared/services/graph.service.ts b/src/shared/services/graph.service.ts index d696238b94cf8c3c879870f2fafbebddf43f1775..295feb208e009e62e768a8c26ed8c02288b10be4 100644 --- a/src/shared/services/graph.service.ts +++ b/src/shared/services/graph.service.ts @@ -73,6 +73,7 @@ function createContentJSON(): EpocV1 { const validBadges = getValidBadges(); const ePocValues = ePocNode.data.formValues; + const plugins = ePocValues.plugins ? ePocValues.plugins.map((plugin: any) => plugin.script) : []; const epoc = new EpocV1( ePocValues.id || 'E000XX', @@ -87,7 +88,7 @@ function createContentJSON(): EpocV1 { ePocValues.certificateScore || 10, ePocValues.certificateBadgeCount || 1, ePocValues.authors || {}, - ePocValues.plugins.map((plugin: any) => plugin.script), + plugins, ePocValues.chapterParameter, new Date().toISOString(), {