Skip to content

Commit fed0281

Browse files
committed
fix(playground): fix display of resolve console output
1 parent 9c50482 commit fed0281

File tree

1 file changed

+2
-3
lines changed
  • experiments/apidom-playground/src/features/app

1 file changed

+2
-3
lines changed

experiments/apidom-playground/src/features/app/slice.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,11 @@ const appSlice = createSlice({
141141
return { ...state, isLoading: true };
142142
},
143143
[resolveApiDOM.fulfilled]: (state, action) => {
144-
const summary = `> Resolved ${action.payload.refs.length} reference(s)\n`;
145144
const resolvedFiles = action.payload.refs.reduce((acc, ref, index) => {
146145
return `${acc}> External reference #${index}: "${ref.uri}"\n`;
147-
}, state.console);
146+
}, `> Resolved ${action.payload.refs.length} reference(s)\n`);
148147

149-
return { ...state, console: `${summary}${resolvedFiles}`, isLoading: false };
148+
return { ...state, console: `${state.console}${resolvedFiles}`, isLoading: false };
150149
},
151150
[resolveApiDOM.rejected]: (state, action) => {
152151
const consoleLines = `${state.console}> ${action.error.message}\n ${action.error.stack}\n`;

0 commit comments

Comments
 (0)