File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/classpath/assets/features/classpathConfiguration Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export const classpathConfigurationViewSlice = createSlice({
5858 }
5959 } ,
6060 updateSource : ( state , action ) => {
61- state . sources [ state . activeProjectIndex ] = action . payload ;
61+ state . sources [ state . activeProjectIndex ] = _ . uniqBy ( action . payload as ClasspathEntry [ ] , "path" ) ;
6262 } ,
6363 setOutputPath : ( state , action ) => {
6464 state . output [ state . activeProjectIndex ] = action . payload ;
@@ -79,8 +79,7 @@ export const classpathConfigurationViewSlice = createSlice({
7979 addLibraries : ( state , action ) => {
8080 let newLibs = state . libraries [ state . activeProjectIndex ] ;
8181 newLibs . unshift ( ...action . payload ) ;
82- newLibs = _ . uniq ( newLibs ) ;
83- state . libraries [ state . activeProjectIndex ] = _ . uniq ( newLibs ) ;
82+ state . libraries [ state . activeProjectIndex ] = _ . uniqBy ( newLibs , "path" ) ;
8483 } ,
8584 catchException : ( state , action ) => {
8685 state . exception = action . payload ;
You can’t perform that action at this time.
0 commit comments