We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd94d2b commit be9189eCopy full SHA for be9189e
1 file changed
src/course-outline/hooks.jsx
@@ -111,9 +111,9 @@ const useCourseOutline = ({ courseId }) => {
111
};
112
113
const headerNavigationsActions = {
114
- handleNewSection: () => {
115
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
116
- handleAddBlock.mutateAsync({
+ handleNewSection: async () => {
+ // istanbul ignore next: we are using this for back compability with the plugin slot. we don't call it anymore.
+ await handleAddBlock.mutateAsync({
117
type: ContainerType.Chapter,
118
parentLocator: courseStructure?.id,
119
displayName: COURSE_BLOCK_NAMES.chapter.name,
0 commit comments