Skip to content

Commit 7cec36a

Browse files
committed
Remove activeUser param from AC editor
This seems entirely unused.
1 parent eb5b5a8 commit 7cec36a

File tree

5 files changed

+0
-8
lines changed

5 files changed

+0
-8
lines changed

root/static/scripts/edit/components/ArtistCreditEditor.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,6 @@ function createInitialNamesState(
444444

445445
export function createInitialState(
446446
initialState: {
447-
+activeUser: ActiveEditorT,
448447
+entity: ArtistCreditableT,
449448
+formName?: string,
450449
/*

root/static/scripts/edit/components/ArtistCreditEditor/types.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export type ArtistCreditNameStateT = {
2929
};
3030

3131
export type StateT = {
32-
+activeUser: ActiveEditorT | null,
3332
+artistCreditString: string,
3433
+changeMatchingTrackArtists?: boolean,
3534
+editsPending?: boolean,

root/static/scripts/edit/components/forms.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ MB.initializeArtistCredit = function (form, initialArtistCredit) {
157157
});
158158

159159
const initialState = createArtistCreditEditorState({
160-
activeUser: window[GLOBAL_JS_NAMESPACE].$c.user,
161160
artistCredit: initialArtistCredit,
162161
entity: source,
163162
formName: form.name,

root/static/scripts/release-editor/bindingHandlers.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ ko.bindingHandlers.artistCreditEditor = {
105105
const artistCredit = entity.artistCredit();
106106

107107
const initialState = createArtistCreditEditorState({
108-
activeUser: window[GLOBAL_JS_NAMESPACE].$c.user,
109108
artistCredit,
110109
entity,
111110
id: entity.uniqueID,

root/static/scripts/tests/artist-credit-editor.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,18 @@
99

1010
import test from 'tape';
1111

12-
import activeSanitizedEditor
13-
from '../../../utility/activeSanitizedEditor.mjs';
1412
import {
1513
createInitialState,
1614
reducer,
1715
} from '../edit/components/ArtistCreditEditor.js';
1816

1917
import {
20-
genericEditor,
2118
genericRecording,
2219
} from './utility/constants.js';
2320

2421
test('MBS-13538: Removing all rows in the AC editor makes it disappear', function (t) {
2522
t.plan(2);
2623
const state = createInitialState({
27-
activeUser: activeSanitizedEditor(genericEditor),
2824
entity: genericRecording,
2925
id: '',
3026
});

0 commit comments

Comments
 (0)