Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix [Jobs] Go back to list redirects to Overview page 1.5.x #2007

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import FunctionsTableRow from '../../../elements/FunctionsTableRow/FunctionsTabl
import ModelsPageTabs from '../ModelsPageTabs/ModelsPageTabs'
import Pipeline from '../../Pipeline/Pipeline'
import Table from '../../Table/Table'
import Loader from '../../../common/Loader/Loader'

import { filters } from './realTimePipelines.util'
import { MODELS_PAGE, REAL_TIME_PIPELINES_TAB } from '../../../constants'
Expand Down Expand Up @@ -57,6 +58,7 @@ const RealTimePipelinesView = React.forwardRef(

return (
<>
{artifactsStore.loading && <Loader />}
<div className="models" ref={ref}>
<div className="table-container">
<div className={filterMenuClassNames}>
Expand Down
1 change: 1 addition & 0 deletions src/reducers/artifactsReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ const artifactsSlice = createSlice({
state.loading = false
})
builder.addCase(fetchFiles.rejected, defaultRejectedHandler)
builder.addCase(fetchArtifactsFunctions.pending, defaultPendingHandler)
builder.addCase(fetchArtifactsFunctions.fulfilled, (state, action) => {
state.error = null
state.pipelines = action.payload
Expand Down
2 changes: 1 addition & 1 deletion src/utils/getCloseDetailsLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ such restriction.
export const getCloseDetailsLink = (location, paramName) => {
return location.pathname
.split('/')
.splice(0, location.pathname.split('/').indexOf(paramName) + 1)
.splice(0, location.pathname.split('/').lastIndexOf(paramName) + 1)
.join('/')
}