Skip to content

Commit

Permalink
refactor: remove renderers init from Entity comp
Browse files Browse the repository at this point in the history
  • Loading branch information
hejtful committed Jan 8, 2025
1 parent d63e3bf commit b8b7e96
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apps/web/src/components/entity/entity.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { editorRenderers } from '@editor/plugin/helpers/editor-renderer'
import { isEmptyArticle } from '@editor/plugins/article/utils/static-is-empty'
import { CourseHeader } from '@editor/plugins/course/renderer/course-header'
import { EditorPluginType } from '@editor/types/editor-plugin-type'
Expand All @@ -24,7 +23,6 @@ import { getIconByTypename } from '@/helper/icon-by-entity-type'
import { isProduction } from '@/helper/is-production'
import { replacePlaceholders } from '@/helper/replace-placeholders'
import { getHistoryUrl } from '@/helper/urls/get-history-url'
import { createRenderers } from '@/serlo-editor-integration/create-renderers'
import { EditorRenderer } from '@/serlo-editor-integration/editor-renderer'

export interface EntityProps {
Expand All @@ -38,8 +36,6 @@ const LenabiCourseFeedback = dynamic(() =>
)

export function Entity({ data }: EntityProps) {
editorRenderers.init(createRenderers())

const isLenabiUserJourneyCoursePage = !isProduction && data.id === 307521

const { strings } = useInstanceData()
Expand Down

0 comments on commit b8b7e96

Please sign in to comment.