File tree 1 file changed +2
-3
lines changed
experiments/apidom-playground/src/features/app
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,11 @@ const appSlice = createSlice({
141
141
return { ...state , isLoading : true } ;
142
142
} ,
143
143
[ resolveApiDOM . fulfilled ] : ( state , action ) => {
144
- const summary = `> Resolved ${ action . payload . refs . length } reference(s)\n` ;
145
144
const resolvedFiles = action . payload . refs . reduce ( ( acc , ref , index ) => {
146
145
return `${ acc } > External reference #${ index } : "${ ref . uri } "\n` ;
147
- } , state . console ) ;
146
+ } , `> Resolved ${ action . payload . refs . length } reference(s)\n` ) ;
148
147
149
- return { ...state , console : `${ summary } ${ resolvedFiles } ` , isLoading : false } ;
148
+ return { ...state , console : `${ state . console } ${ resolvedFiles } ` , isLoading : false } ;
150
149
} ,
151
150
[ resolveApiDOM . rejected ] : ( state , action ) => {
152
151
const consoleLines = `${ state . console } > ${ action . error . message } \n ${ action . error . stack } \n` ;
You can’t perform that action at this time.
0 commit comments