Skip to content

Commit f389ec9

Browse files
authored
Merge pull request #62 from l0drex/beta
Bug fixes
2 parents 9411e3d + 0712ea0 commit f389ec9

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

src/backend/graph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class GraphPerson extends GedcomX.DisplayProperties implements GraphObjec
3131
equals = (person: GedcomX.Person | GraphPerson | GedcomX.DisplayProperties) => {
3232
if (person instanceof GedcomX.DisplayProperties) {
3333
return person.getName() === this.getName()
34-
&& person.getBirthDate() === this.getBirthDate();
34+
&& person.getAscendancyNumber() === this.getAscendancyNumber();
3535
}
3636

3737
if (person instanceof GraphPerson) {

src/components/InfoPanel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class InfoPanel extends Component<Props, null> {
2121
<SearchField onRefocus={this.props.onRefocus} person={person}/>
2222
{person.getMarriedName() && <h2 className="birth-name">{person.getBirthName()}</h2>}
2323
{person.getAlsoKnownAs() && <h2 className="alsoKnownAs">{person.getAlsoKnownAs()}</h2>}
24+
{person.getNickname() && <h2 className="nickname">{person.getNickname()}</h2>}
2425

2526
<ul id="factView">
2627
{person.getFacts().sort((a, b) => {

src/components/Uploader.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ class Uploader extends React.Component<any, any> {
5555
</>
5656
);
5757
}
58+
59+
componentDidUpdate(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any) {
60+
let root = document.getElementById("root");
61+
root.classList.remove("sidebar-visible");
62+
}
63+
64+
componentDidMount() {
65+
let root = document.getElementById("root");
66+
root.classList.remove("sidebar-visible");
67+
}
5868
}
5969

6070
export default Uploader;

src/components/View.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ class View extends Component<any, State> {
102102
}
103103

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

0 commit comments

Comments
 (0)