Skip to content

Commit

Permalink
Merge pull request #62 from l0drex/beta
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
l0drex authored Aug 15, 2022
2 parents 9411e3d + 0712ea0 commit f389ec9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/backend/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class GraphPerson extends GedcomX.DisplayProperties implements GraphObjec
equals = (person: GedcomX.Person | GraphPerson | GedcomX.DisplayProperties) => {
if (person instanceof GedcomX.DisplayProperties) {
return person.getName() === this.getName()
&& person.getBirthDate() === this.getBirthDate();
&& person.getAscendancyNumber() === this.getAscendancyNumber();
}

if (person instanceof GraphPerson) {
Expand Down
1 change: 1 addition & 0 deletions src/components/InfoPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class InfoPanel extends Component<Props, null> {
<SearchField onRefocus={this.props.onRefocus} person={person}/>
{person.getMarriedName() && <h2 className="birth-name">{person.getBirthName()}</h2>}
{person.getAlsoKnownAs() && <h2 className="alsoKnownAs">{person.getAlsoKnownAs()}</h2>}
{person.getNickname() && <h2 className="nickname">{person.getNickname()}</h2>}

<ul id="factView">
{person.getFacts().sort((a, b) => {
Expand Down
10 changes: 10 additions & 0 deletions src/components/Uploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ class Uploader extends React.Component<any, any> {
</>
);
}

componentDidUpdate(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any) {
let root = document.getElementById("root");
root.classList.remove("sidebar-visible");
}

componentDidMount() {
let root = document.getElementById("root");
root.classList.remove("sidebar-visible");
}
}

export default Uploader;
3 changes: 0 additions & 3 deletions src/components/View.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ class View extends Component<any, State> {
}

componentDidUpdate(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any) {
if (prevState.focusId !== this.state.focusId) {
//this.onViewChanged(this.state.activeView);
}
let root = document.querySelector<HTMLDivElement>("#root");
if (this.state.focusHidden) {
root.classList.remove("sidebar-visible");
Expand Down

0 comments on commit f389ec9

Please sign in to comment.