Conversation
Process WordList items attached to a page (from personalisation) and merge them into the existing Grid.WordList.Items.WordListItem array. Checks for a known symbol key ('wordListItems'), handles casing variations of existing items, ensures an array, and appends new items in Grid 3 format (Text.p.s.r, Image as '', PartOfSpeech 'Unknown'). Skips processing if there is no existing WordList.Items to avoid creating new cells.
When personalizing vocabularies with WordList items, the code was checking if originalGrid.Grid.WordList.Items existed before adding items. If the original page didn't have a WordList, items would not be added. This change ensures the WordList structure is created if it doesn't exist, allowing personalization items to be added to pages without existing WordLists.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Process WordList items attached to a page (from personalisation) and merge them into the existing Grid.WordList.Items.WordListItem array. Checks for a known symbol key ('wordListItems'), handles casing variations of existing items, ensures an array, and appends new items in Grid 3 format (Text.p.s.r, Image as '', PartOfSpeech 'Unknown'). Skips processing if there is no existing WordList.Items to avoid creating new cells.