mirror of
https://github.com/bendtherules/ts-transformer-visualizer.git
synced 2026-08-18 13:51:48 +00:00
store - Set currentSourceFile also inside INIT_SOURCEFILE reducer
This commit is contained in:
@@ -18,7 +18,8 @@ export function sourceFilesReducer(
|
|||||||
case INIT_SOURCEFILE:
|
case INIT_SOURCEFILE:
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
inititalSourceFile: action.payload.sourceFile
|
inititalSourceFile: action.payload.sourceFile,
|
||||||
|
currentSourceFile: action.payload.sourceFile
|
||||||
};
|
};
|
||||||
case UPDATE_SOURCEFILE:
|
case UPDATE_SOURCEFILE:
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user