Fix: Person Account files not showing + App Builder component error#9
Open
Etienne-SFDO wants to merge 1 commit into
Open
Conversation
- FilesListController: add missing return statement so empty searchTerm correctly delegates to getAllRelatedList instead of falling through to the search query path - Replace WITH SECURITY_ENFORCED with WITH USER_MODE throughout for compatibility with API v55+ - fileCard: guard objectInfoData null checks to prevent component error when properties are changed in Lightning App Builder - Bump all metadata API versions from 48.0 to 63.0 Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
Thanks for the contribution! It looks like @Etienne-SFDO is an internal user so signing the CLA is not required. However, we need to confirm this. |
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.
Summary
getRelatedFilesByRecordIdwas missing areturnwhensearchTermwas empty, causing it to fall through to the search query instead of callinggetAllRelatedList. Files would never display on Person Account records.WITH SECURITY_ENFORCEDwithWITH USER_MODEthroughoutFilesListController—WITH SECURITY_ENFORCEDis deprecated from API v55+.fileCard.jsthrewCannot read properties of undefined (reading 'apiName')when changing component properties in Lightning App Builder, becauseobjectInfoDatacan beundefinedwhengetObjectInforeturns an error mid-edit. Added null guard on both occurrences.Test plan
🤖 Generated with Claude Code