Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/Editor/FlowEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import ContextMenu, {
ContextMenuTypes,
} from '../ContextMenu/ContextMenu';

import { platform } from 'os';
import { createNewDefaultPolyglotNode } from '../../utils/utils';
import LateralMenu from '../LateralMenu/LateralMenu';
import EditorNav from '../NavBars/EditorNav';
Expand Down Expand Up @@ -157,6 +156,8 @@ const FlowEditor = ({
topicsAI: flow?.topicsAI,
language: flow?.language,
macro_subject: flow?.macro_subject,
title: flow?.title,
context: flow?.context,
},
reactFlow: {
id: id,
Expand Down
1 change: 1 addition & 0 deletions src/components/Properties/Nodes/AbstractNodeProperties.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ const AbstractNodeProperties = () => {
setMacroSubject(response.data.macro_subject);
setValue('data.macro_subject', response.data.macro_subject);
setValue('data.language', response.data.language);
setValue('data.title', response.data.title);
setValue(
'data.learning_outcome',
response.data.learning_outcome as LearningOutcome
Expand Down
3 changes: 3 additions & 0 deletions src/types/polyglotElements/nodes/AbstractNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export type AbstractNodeData = NodeData & {
topicsAI: Topic[];
language: string;
macro_subject: string;
title: string;
context?: string;
};

export type AbstractNode = PolyglotNode & {
Expand All @@ -35,6 +37,7 @@ polyglotNodeComponentMapping.registerMapping<AbstractNode>({
education_level: EducationLevel.College,
topicsAI: [],
language: '',
title: '',
macro_subject: '',
},
});
Loading