Skip to content

Commit

Permalink
Fix/record type not displayed in popup 255 (tprouvot#259)
Browse files Browse the repository at this point in the history
## Describe your changes
Record Type not displayed in popup

## Issue ticket number and link
tprouvot#255 
## Checklist before requesting a review
- [ ] I have read and understand the [Contributions
section](https://github.com/tprouvot/Salesforce-Inspector-reloaded#contributions)
- [ ] Target branch is releaseCandidate and not master
- [ ] I have performed a self-review of my code
- [ ] I ran the [unit
tests](https://github.com/tprouvot/Salesforce-Inspector-reloaded#unit-tests)
and my PR does not break any tests
- [ ] I documented the changes I've made on the
[CHANGES.md](https://github.com/tprouvot/Salesforce-Inspector-reloaded/blob/master/CHANGES.md)
and followed actual conventions
- [ ] I added a new section on
[how-to.md](https://github.com/tprouvot/Salesforce-Inspector-reloaded/blob/master/docs/how-to.md)
(optional)
  • Loading branch information
tprouvot authored and AntoineLeleu-Salesforce committed Jan 4, 2024
1 parent 712e20d commit c6310ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Version 1.22

- Fix 'Record Type not displayed' in popup [issue 255](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/255)
- Add "Options" page to manage local storage variables directly from the UX. Allow to reposition the popup button [feature 145](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/145) (contribution by [Pietro Martino](https://github.com/pietromartino))
- Bugfix Delete button does not check for 'toolingApi' parameter [issue 254](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/254) (contribution by [Oscar Gomez Balaguer](https://github.com/ogomezba))
- Add Apex classes documentation in shortcut [feature 247](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/247)
Expand Down
9 changes: 6 additions & 3 deletions addon/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,15 +436,18 @@ class AllDataBox extends React.PureComponent {
if (!entity.keyPrefix) { // For some objects the keyPrefix is only available in some of the APIs.
entity.keyPrefix = keyPrefix;
}
if (!entity.durableId) { // For some objects the durableId is only available in some of the APIs
if (!entity.durableId) {
entity.durableId = durableId;
}
if (!entity.isEverCreatable) { // For some objects isEverCreatable is only available in some of the APIs
if (!entity.isEverCreatable) {
entity.isEverCreatable = isEverCreatable;
}
if (!entity.newUrl) { // For some objects isEverCreatable is only available in some of the APIs
if (!entity.newUrl) {
entity.newUrl = newUrl;
}
if (!entity.recordTypesSupported) {
entity.recordTypesSupported = recordTypesSupported;
}
} else {
entity = {
availableApis: [],
Expand Down

0 comments on commit c6310ae

Please sign in to comment.