Skip to content

Commit b10f498

Browse files
committed
Change code to force console rerender when changing theme and font size
1 parent ae71067 commit b10f498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/modules/IDE/components/Console.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const Console = ({ t }) => {
151151
<ConsoleFeed
152152
styles={getConsoleFeedStyle(theme, times, fontSize)}
153153
logs={[consoleEvent]}
154-
key={Date.now()}
154+
key={`${consoleEvent.id}-${theme}-${fontSize}`}
155155
/>
156156
</div>
157157
);

0 commit comments

Comments
 (0)