Skip to content

Commit

Permalink
Merge pull request #1051 from topcoder-platform/hotfix/hide-attachments
Browse files Browse the repository at this point in the history
[HOTFIX] [PROD] Hide attachments
  • Loading branch information
vikasrohit authored Jan 22, 2021
2 parents dc7072e + 9eb42d7 commit e58d734
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/ChallengeEditor/ChallengeView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,13 @@ const ChallengeView = ({
challenge={challenge}
readOnly
/>
<AttachmentField
{/* hide until challenge API change is pushed to PROD https://github.com/topcoder-platform/challenge-api/issues/348 */}
{false && <AttachmentField
challengeId={challenge.id}
attachments={attachments}
token={token}
readOnly
/>
/>}
<ChallengePrizesField challenge={challenge} readOnly />
<CopilotFeeField challenge={challenge} readOnly />
<ChallengeTotalField challenge={challenge} />
Expand Down
5 changes: 3 additions & 2 deletions src/components/ChallengeEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1454,14 +1454,15 @@ class ChallengeEditor extends Component {
onUpdateMultiSelect={this.onUpdateMultiSelect}
onUpdateMetadata={this.onUpdateMetadata}
/>
<AttachmentField
{/* hide until challenge API change is pushed to PROD https://github.com/topcoder-platform/challenge-api/issues/348 */}
{ false && <AttachmentField
challenge={{ ...challenge, id: currentChallengeId }}
challengeId={currentChallengeId}
attachments={attachments}
onUploadFiles={uploadAttachments}
token={token}
removeAttachment={removeAttachment}
/>
/>}
<ChallengePrizesField challenge={challenge} onUpdateOthers={this.onUpdateOthers} />
<CopilotFeeField challenge={challenge} onUpdateOthers={this.onUpdateOthers} />
<ChallengeTotalField challenge={challenge} />
Expand Down

0 comments on commit e58d734

Please sign in to comment.