Skip to content

Commit 624e06a

Browse files
Fix app bug
1 parent 6095bbb commit 624e06a

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

app/components/Applications.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,27 +76,27 @@ const Applications = () => {
7676

7777
return (
7878
<>
79-
{applications.map((app: string, i: number | any | string | undefined) => (
79+
{applications.map((app: string[], i: number | any | string | undefined) => (
8080
<Grid item lg={4} md={6} sm={12} key={i}>
8181
<div id="card-hover">
8282
<Card
8383
className={classes.paper}
8484
variant="outlined"
85-
onClick={(event: React.MouseEvent<HTMLElement>) => handleClick(app, i)}
85+
onClick={(event: React.MouseEvent<HTMLElement>) => handleClick(app[0], i)}
8686
>
8787
<CardHeader
8888
avatar={
8989
<IconButton
9090
className={classes.hover}
9191
aria-label="Delete"
92-
onClick={(event: React.MouseEvent<HTMLElement>) => confirmDelete(app, i)}
92+
onClick={(event: React.MouseEvent<HTMLElement>) => confirmDelete(app[0], i)}
9393
>
9494
<DeleteForeverOutlinedIcon />
9595
</IconButton>
9696
}
9797
></CardHeader>
9898
<CardContent>
99-
<Typography className={classes.fontStyles}>{app}</Typography>
99+
<Typography className={classes.fontStyles}>{app[0]}</Typography>
100100
</CardContent>
101101
</Card>
102102
</div>

app/context/DashboardContext.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const DashboardContextProvider = ({ children }: Props) => {
3131
*/
3232
const getApplications = () => {
3333
const result = ipcRenderer.sendSync('getApps');
34+
console.log('result', result)
3435
setApplications(result);
3536
};
3637

0 commit comments

Comments
 (0)