Skip to content

Commit

Permalink
fix: select values file path on preview
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Nov 18, 2021
1 parent 4b2ad84 commit 0c14241
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/redux/reducers/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,9 @@ export const mainSlice = createSlice({
state.currentSelectionHistoryIndex = undefined;
resetSelectionHistory(state);
state.selectedResourceId = undefined;
state.selectedPath = undefined;
if (action.payload.previewResourceId && state.helmValuesMap[action.payload.previewResourceId]) {
selectFilePath(state.helmValuesMap[action.payload.previewResourceId].filePath, state);
}
state.selectedValuesFileId = action.payload.previewResourceId;
})
.addCase(previewHelmValuesFile.rejected, (state, action) => {
Expand Down

0 comments on commit 0c14241

Please sign in to comment.