Skip to content

Commit

Permalink
fix(homebrew): Fixed homebrew replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbenton committed May 25, 2024
1 parent d362165 commit f6effe3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

### Bug Fixes

- Fixed "replaced" oracle tables not showing children
- Fixed "replaced" move tables showing up twice

## 3.0.0

### New Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function OracleCollection(props: OracleCollectionProps) {
oracles={oracles}
disabled={!isExpandedOrForced || disabled}
visibleOracles={visibleOracles}
collectionVisibility={visibleCollections[collectionId]}
collectionVisibility={visibleCollections[collection._id]}
/>
))}
{subCollectionIds.map((subCollectionId) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export interface OracleListItemProps {
export function OracleListItem(props: OracleListItemProps) {
const { oracleId, oracles, visibleOracles, disabled, collectionVisibility } =
props;

const oracle = oracles[oracleId];
const { rollOracleTable } = useRoller();

Expand Down
3 changes: 2 additions & 1 deletion src/stores/rules/helpers/parseMovesIntoMaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ export function parseMovesIntoMaps(
if (category.contents) {
if (category.replaces) {
moveCategoryMap[category.replaces] = category;
} else {
moveCategoryMap[category._id] = category;
}
moveCategoryMap[category._id] = category;
nonReplacedMoveCategoryMap[category._id] = category;
Object.values(category.contents).forEach((move) => {
if (move.replaces) {
Expand Down

0 comments on commit f6effe3

Please sign in to comment.