Skip to content

Commit 5d20301

Browse files
committed
reset css editor after user left
1 parent 8e88c37 commit 5d20301

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/src/components/main/Canvas.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { combineStyles } from '../../helperFunctions/combineStyles';
1616
import renderChildren from '../../helperFunctions/renderChildren';
1717
import { emitEvent, getSocket } from '../../helperFunctions/socket';
1818
import { FaMousePointer } from 'react-icons/fa';
19-
import { Console } from 'console';
2019

2120
function Canvas(props: {}): JSX.Element {
2221
const state = useSelector((store: RootState) => store.appState);

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,14 +778,18 @@ const appStateSlice = createSlice({
778778
style: {}
779779
};
780780
const components = [rootComponent];
781+
782+
const stylesheet = '';
783+
781784
return {
782785
...state,
783786
nextChildId,
784787
nextTopSeparatorId,
785788
rootComponents,
786789
nextComponentId,
787790
components,
788-
canvasFocus
791+
canvasFocus,
792+
stylesheet
789793
};
790794
},
791795
updateProjectName: (state, action) => {

0 commit comments

Comments
 (0)