mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-22 19:15:15 +00:00
Ensure default sorting
This commit is contained in:
parent
2edfb5a20c
commit
6c6d3e587b
|
@ -99,12 +99,12 @@ export class UserService {
|
|||
public static getAvailableBots(): BotDescriptors {
|
||||
const allInfo = UserService.getAllLoginInfos();
|
||||
const response: BotDescriptors = {};
|
||||
Object.entries(allInfo).forEach(([k, v]) => {
|
||||
Object.entries(allInfo).forEach(([k, v], idx) => {
|
||||
response[k] = {
|
||||
botId: k,
|
||||
botName: v.botName,
|
||||
botUrl: v.apiUrl,
|
||||
sortId: v.sortId ?? 0,
|
||||
sortId: v.sortId ?? idx,
|
||||
};
|
||||
});
|
||||
return response;
|
||||
|
|
Loading…
Reference in New Issue
Block a user