Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/bb66af7185b2e46b01977d1c21fa49a294e4e1cb?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
9 additions and
5 deletions
@ -93,7 +93,7 @@ class InteractiveImportSelectFolderModalContent extends Component {
>
>
< TableBody >
< TableBody >
{
{
recentFolders . map( ( recentFolder ) => {
recentFolders . slice( 0 ) . reverse ( ) . map( ( recentFolder ) => {
return (
return (
< RecentFolderRow
< RecentFolderRow
key = { recentFolder . folder }
key = { recentFolder . folder }
@ -19,6 +19,8 @@ export const section = 'interactiveImport';
const booksSection = ` ${ section } .books ` ;
const booksSection = ` ${ section } .books ` ;
const bookFilesSection = ` ${ section } .bookFiles ` ;
const bookFilesSection = ` ${ section } .bookFiles ` ;
const MAXIMUM _RECENT _FOLDERS = 10 ;
//
//
// State
// State
@ -203,12 +205,14 @@ export const reducers = createHandleActions({
const index = recentFolders . findIndex ( ( r ) => r . folder === folder ) ;
const index = recentFolders . findIndex ( ( r ) => r . folder === folder ) ;
if ( index > - 1 ) {
if ( index > - 1 ) {
recentFolders . splice ( index , 1 , recentFolder ) ;
recentFolders . splice ( index , 1 ) ;
} else {
recentFolders . push ( recentFolder ) ;
}
}
return Object . assign ( { } , state , { recentFolders } ) ;
recentFolders . push ( recentFolder ) ;
const sliceIndex = Math . max ( recentFolders . length - MAXIMUM _RECENT _FOLDERS , 0 ) ;
return Object . assign ( { } , state , { recentFolders : recentFolders . slice ( sliceIndex ) } ) ;
} ,
} ,
[ REMOVE _RECENT _FOLDER ] : function ( state , { payload } ) {
[ REMOVE _RECENT _FOLDER ] : function ( state , { payload } ) {