Merge pull request #6822 from tomlum/fixes-create-project-token

Adds check for newly created project to not require token
This commit is contained in:
Tom Lum 2022-05-24 14:29:32 -04:00 committed by GitHub
commit 7062a5f170
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -833,7 +833,9 @@ class Preview extends React.Component {
/>
</Page> :
<React.Fragment>
{this.props.projectInfo && this.props.projectInfo.project_token && (
{(parseInt(this.state.projectId, 10) === 0 ||
(this.props.projectInfo && this.props.projectInfo.project_token)) &&
(
<IntlGUI
assetHost={this.props.assetHost}
authorId={this.props.authorId}