Commit 69aea3b7 authored by Marek Veselý's avatar Marek Veselý
Browse files

Merge branch...

Merge branch '564-do-not-show-the-content-field-in-questionnaire-if-no-content-is-to-be-shown' into 'main'

fix: do not show the content field in questionnaire if no content is to be shown

Closes #564

See merge request inject/frontend!480
parents ceb36308 9b9337a2
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -123,6 +123,7 @@ const Questionnaire: FC<QuestionnaireProps> = ({
      {callout}

      <div className={contentWrapper}>
        {(content.rendered || content.fileInfo) && (
          <div className={descriptionClass}>
            <ContentComponent
              content={content}
@@ -130,6 +131,7 @@ const Questionnaire: FC<QuestionnaireProps> = ({
              exerciseId={exerciseId}
            />
          </div>
        )}

        <div
          className={cx({