Skip to content

Commit db6e5af

Browse files
authored
Merge pull request #4 from oslabs-beta/liam/appstatecomments
added comment to appStateSlice
2 parents 2937578 + dc69063 commit db6e5af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/redux/reducers/slice/appStateSlice.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,7 @@ const appStateSlice = createSlice({
860860
},
861861
//deleted 'convertToJSX' function, which threw errors upon opening
862862
openProject: (state, action) => {
863+
// returning the action.payload is a Redux shortcut that updates the entire app state at the same time
863864
return action.payload;
864865
},
865866
addElement: (state, action) => {

0 commit comments

Comments
 (0)