Skip to content

Commit 4033548

Browse files
author
vikasrohit
authored
Merge pull request #1146 from appirio-tech/feature/misc-changes
Github issue#1102, Process/add ref code from deep link
2 parents 14ecc06 + 10c302a commit 4033548

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/projects/detail/components/SpecSection.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const SpecSection = props => {
122122
<h5 className="project-name">{project.name}</h5>
123123
</div>
124124
}
125-
{ (!project.status || project.status === PROJECT_STATUS_DRAFT) &&
125+
{ (!queryParamRefCode && (!project.status || project.status === PROJECT_STATUS_DRAFT)) &&
126126
<div className="textinput-refcode">
127127
<TCFormFields.TextInput
128128
name={refCodeFieldName}
@@ -138,7 +138,7 @@ const SpecSection = props => {
138138
</div>
139139
</div>
140140
}
141-
{ (refCode && project.status && project.status !== PROJECT_STATUS_DRAFT) &&
141+
{ (!queryParamRefCode && project.status && project.status !== PROJECT_STATUS_DRAFT) &&
142142
<div className="read-only-refcode">
143143
<h5 className="project-refcode">{ refCode }</h5>
144144
<div className="refcode-desc">

0 commit comments

Comments
 (0)