Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Feb 14, 2024
1 parent 0f46f40 commit 0f57254
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,16 @@ class WorkflowRunSelectionContext internal constructor(
private fun setNewJobsProvider() {
val oldValue = jobDataProviderLoadModel.value
val newValue = jobsDataProvider
if (newValue != oldValue) {
jobSelectionHolder.selection = null
}
if (oldValue != newValue && newValue != null && oldValue?.url() != newValue.url()) {
jobDataProviderLoadModel.value = newValue
jobSelectionHolder.selection = null
}
}

private fun setNewLogProvider() {
val oldValue = jobLogDataProviderLoadModel.value
val newValue = logDataProvider
if (oldValue != newValue && newValue != null && oldValue?.url() != newValue.url()) {
if (oldValue != newValue && oldValue?.url() != newValue?.url()) {
jobLogDataProviderLoadModel.value = newValue
}
}
Expand Down

0 comments on commit 0f57254

Please sign in to comment.