Skip to content

Commit 87481a5

Browse files
committed
Clean up deleted alpha param from condition editor references
This was removed in #919.
1 parent bacd2d0 commit 87481a5

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

frontend/src/components/experiment_builder/structured_prompt_editor.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {CSSResultGroup, html, nothing, TemplateResult} from 'lit';
88
import {customElement, property} from 'lit/decorators.js';
99

1010
import {core} from '../../core/core';
11-
import {AuthService} from '../../services/auth.service';
1211
import {ExperimentEditor} from '../../services/experiment.editor';
1312
import {renderConditionEditor} from '../../shared/condition_editor.utils';
1413

@@ -36,7 +35,6 @@ import {styles} from './structured_prompt_editor.scss';
3635
export class EditorComponent extends MobxLitElement {
3736
static override styles: CSSResultGroup = [styles];
3837

39-
private readonly authService = core.getService(AuthService);
4038
private readonly experimentEditor = core.getService(ExperimentEditor);
4139

4240
@property() prompt: PromptItem[] = [];
@@ -273,7 +271,6 @@ export class EditorComponent extends MobxLitElement {
273271
const conditionEditor = renderConditionEditor({
274272
condition: item.condition,
275273
targets: conditionTargets,
276-
showAlphaFeatures: this.authService.showAlphaFeatures,
277274
canEdit: this.experimentEditor.canEditStages,
278275
onConditionChange,
279276
});

frontend/src/components/stages/survey_editor.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import '@material/web/checkbox/checkbox.js';
66
import '../../pair-components/textarea_template';
77

88
import {core} from '../../core/core';
9-
import {AuthService} from '../../services/auth.service';
109
import {ExperimentEditor} from '../../services/experiment.editor';
1110
import {renderConditionEditor} from '../../shared/condition_editor.utils';
1211
import {
@@ -32,7 +31,6 @@ import {styles} from './survey_editor.scss';
3231
export class SurveyEditor extends MobxLitElement {
3332
static override styles: CSSResultGroup = [styles];
3433

35-
private readonly authService = core.getService(AuthService);
3634
private readonly experimentEditor = core.getService(ExperimentEditor);
3735

3836
@property() stage:
@@ -223,7 +221,6 @@ export class SurveyEditor extends MobxLitElement {
223221
return renderConditionEditor({
224222
condition: question.condition,
225223
targets,
226-
showAlphaFeatures: this.authService.showAlphaFeatures,
227224
canEdit: this.experimentEditor.canEditStages,
228225
onConditionChange,
229226
});

0 commit comments

Comments
 (0)