Don't push onto history when launching process

This commit is contained in:
2023-06-05 16:49:51 -05:00
parent a6a9969cba
commit b7addd315b

View File

@ -318,13 +318,16 @@ function RecordView({table, launchProcess}: Props): JSX.Element
setPageHeader(record.recordLabel); setPageHeader(record.recordLabel);
try if(!launchingProcess)
{ {
HistoryUtils.push({label: `${tableMetaData?.label}: ${record.recordLabel}`, path: location.pathname, iconName: table.iconName}); try
} {
catch(e) HistoryUtils.push({label: `${tableMetaData?.label}: ${record.recordLabel}`, path: location.pathname, iconName: table.iconName});
{ }
console.error("Error pushing history: " + e); catch(e)
{
console.error("Error pushing history: " + e);
}
} }
///////////////////////////////////////////////// /////////////////////////////////////////////////