fix a few things about getRecentScritps

This commit is contained in:
Olivier Gagnon
2022-04-12 14:45:48 -04:00
parent a9b03f34ab
commit 52e01fc026
7 changed files with 16 additions and 30 deletions
@@ -57,8 +57,8 @@ export function RecentScriptAccordion(props: IProps): React.ReactElement {
<ListItemText
primary={
<Typography>
{recentScript.filename} (died{" "}
{convertTimeMsToTimeElapsedString(new Date().getTime() - recentScript.timestamp.getTime())} ago)
{recentScript.runningScript.filename} (died{" "}
{convertTimeMsToTimeElapsedString(new Date().getTime() - recentScript.timeOfDeath.getTime())} ago)
</Typography>
}
/>
@@ -78,7 +78,7 @@ export function RecentScriptAccordion(props: IProps): React.ReactElement {
</TableRow>
<TableRow>
<TableCell className={classes.noborder} colSpan={2}>
<Typography> Args: {arrayToString(recentScript.args)}</Typography>
<Typography> Args: {arrayToString(recentScript.runningScript.args)}</Typography>
</TableCell>
</TableRow>
<TableRow>
+1 -1
View File
@@ -13,7 +13,7 @@ export function RecentScriptsPage(): React.ReactElement {
<>
<Typography>List of all recently killed scripts.</Typography>
{recentScripts.map((r) => (
<RecentScriptAccordion key={r.pid} recentScript={r} />
<RecentScriptAccordion key={r.runningScript.pid} recentScript={r} />
))}
</>
);
+1 -1
View File
@@ -196,7 +196,7 @@ export function GameOptionsRoot(props: IProps): React.ReactElement {
value={recentScriptsSize}
onChange={handleRecentScriptsSizeChange}
step={25}
min={25}
min={0}
max={500}
valueLabelDisplay="auto"
/>