Skip to content

Commit e58d734

Browse files
author
vikasrohit
authored
Merge pull request #1051 from topcoder-platform/hotfix/hide-attachments
[HOTFIX] [PROD] Hide attachments
2 parents dc7072e + 9eb42d7 commit e58d734

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/components/ChallengeEditor/ChallengeView/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,13 @@ const ChallengeView = ({
223223
challenge={challenge}
224224
readOnly
225225
/>
226-
<AttachmentField
226+
{/* hide until challenge API change is pushed to PROD https://github.com/topcoder-platform/challenge-api/issues/348 */}
227+
{false && <AttachmentField
227228
challengeId={challenge.id}
228229
attachments={attachments}
229230
token={token}
230231
readOnly
231-
/>
232+
/>}
232233
<ChallengePrizesField challenge={challenge} readOnly />
233234
<CopilotFeeField challenge={challenge} readOnly />
234235
<ChallengeTotalField challenge={challenge} />

src/components/ChallengeEditor/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,14 +1454,15 @@ class ChallengeEditor extends Component {
14541454
onUpdateMultiSelect={this.onUpdateMultiSelect}
14551455
onUpdateMetadata={this.onUpdateMetadata}
14561456
/>
1457-
<AttachmentField
1457+
{/* hide until challenge API change is pushed to PROD https://github.com/topcoder-platform/challenge-api/issues/348 */}
1458+
{ false && <AttachmentField
14581459
challenge={{ ...challenge, id: currentChallengeId }}
14591460
challengeId={currentChallengeId}
14601461
attachments={attachments}
14611462
onUploadFiles={uploadAttachments}
14621463
token={token}
14631464
removeAttachment={removeAttachment}
1464-
/>
1465+
/>}
14651466
<ChallengePrizesField challenge={challenge} onUpdateOthers={this.onUpdateOthers} />
14661467
<CopilotFeeField challenge={challenge} onUpdateOthers={this.onUpdateOthers} />
14671468
<ChallengeTotalField challenge={challenge} />

0 commit comments

Comments
 (0)