Skip to content

Commit

Permalink
Merge pull request #2933 from tomachalek/issue#2929_b
Browse files Browse the repository at this point in the history
Fix #2929
  • Loading branch information
tomachalek authored Jan 9, 2020
2 parents 5144861 + 87613c3 commit 119f440
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/files/js/plugins/ucnkLiveAttributes/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ export class LiveAttributesPlugin implements PluginInterfaces.LiveAttributes.IPl
*/
const create:PluginInterfaces.LiveAttributes.Factory = (
pluginApi, textTypesModel, isEnabled, controlsAlignedCorpora, args) => {
const currAligned = pluginApi.getConf<Array<string>>('alignedCorpora') || [];
const alignedCorpora = Immutable.List(args.availableAlignedCorpora
.map((item) => {
return {
value: item.n,
label: item.label,
selected: false,
selected: currAligned.indexOf(item.n) > -1,
locked: !controlsAlignedCorpora
};
}));
Expand Down

0 comments on commit 119f440

Please sign in to comment.