Skip to content

Commit

Permalink
fix(studio): refactor to 'rules' instead of 'mapping' key
Browse files Browse the repository at this point in the history
  • Loading branch information
roedoejet committed Sep 5, 2023
1 parent 20e3bcb commit 22644e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions g2p/static/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ getIncludedMappings = function() {
mapping = {}
let kwargs = getKwargs(index)
if (kwargs["type"] == "lexicon")
mapping['mapping'] = null;
mapping['rules'] = null;
else
mapping['mapping'] = TABLES[index].getSourceData().filter(v => v.in)
mapping['rules'] = TABLES[index].getSourceData().filter(v => v.in)
// Extract only non-empty rules and abbreviations for processing
mapping['abbreviations'] = ABBS[index].getData().filter(v => v[0])
mapping['kwargs'] = getKwargs(index)
Expand Down

0 comments on commit 22644e7

Please sign in to comment.