Skip to content

[HOTFIX] [PROD] Hide attachments #1051

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2021
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
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