Skip to content
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

Remove unused variable report__base #4552

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions jsapp/js/components/formSubScreens.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,11 @@ export class FormSubScreens extends React.Component {
}

var iframeUrl = '';
var report__base = '';
var deployment__identifier = '';

if (this.state.uid != undefined) {
if (this.state.deployment__identifier != undefined) {
deployment__identifier = this.state.deployment__identifier;
report__base = deployment__identifier.replace('/forms/', '/reports/');
}
switch (this.props.router.location.pathname) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have suggested removing var deployment__identifier = '' and the whole if (…deployment__identifier…) { … } block, as it appears to be unused.

case ROUTES.FORM_TABLE.replace(':uid', this.state.uid):
Expand Down