mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 16:03:49 +00:00
Fix undefined selectedRowKey in automation host recovery
Replace references to the undefined selectedRowKey variable with selectedRow?.key to properly access the row's key when recovering automation runs across hosts.
This commit is contained in:
@@ -2415,11 +2415,11 @@ export default function AutomationsPage(): React.JSX.Element {
|
||||
selectedAutomationRunPage={selectedAutomationRunPage}
|
||||
selectedRuns={selectedRuns}
|
||||
selectedRunsNotice={selectedRunsNotice}
|
||||
selectedHostEntry={rowRecoveryHost(selectedRowKey)}
|
||||
selectedHostEntry={rowRecoveryHost(selectedRow?.key ?? null)}
|
||||
recoverSelectedRuns={(action) => {
|
||||
// Reconnect/Update server act on the selected row's own host; the
|
||||
// re-ask is what brings this automation's history back either way.
|
||||
hostCatalog.recover(action, rowRecoveryHost(selectedRowKey))
|
||||
hostCatalog.recover(action, rowRecoveryHost(selectedRow?.key ?? null))
|
||||
setSelectedAutomationRuns((current) => ({ ...current, notice: null }))
|
||||
setRunHistoryReloadToken((token) => token + 1)
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user