Skip to content

Commit

Permalink
Merge pull request #22 from oslabs-beta/finalTestBranch
Browse files Browse the repository at this point in the history
Fixed some typescript error
  • Loading branch information
AndyB909 authored Jul 21, 2022
2 parents 9c3b1bd + 1ea642b commit 0a0e30a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/components/ComponentMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function ComponentMap({
const [orientation, setOrientation] = useState('horizontal');
const [linkType, setLinkType] = useState('diagonal');
const [stepPercent, setStepPercent] = useState(10);
const [setTooltip] = useState(false);
const [Tooltip, setTooltip] = useState(false);
const [selectedNode, setSelectedNode] = useState('root');
const [, dispatch] = useStoreContext();

Expand Down
4 changes: 2 additions & 2 deletions src/app/containers/ActionContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ function ActionContainer(props): JSX.Element {
</button>
</div>
{/* Rendering of route description components */}
{Object.keys(routes).map(route => (
<RouteDescription actions={routes[route]} />))}
{Object.keys(routes).map((route, i) => (
<RouteDescription key={`route${i}`} actions={routes[route]} />))}
</div>
) : null}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/backend/linkFiber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function createTree(
// check to see if we can get the information we were looking for
if (tag === 5) {
try {
if (memoizedProps.children[0]._owner.memoizedProps !== undefined) {
if (memoizedProps.children[0]._owner?.memoizedProps !== undefined) {
const propsData = memoizedProps.children[0]._owner.memoizedProps;
const newPropData = convertDataToString(propsData, tree.componentData.props ? tree.componentData.props : null);
tree.componentData = {
Expand Down

0 comments on commit 0a0e30a

Please sign in to comment.