mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
fix timetable id
This commit is contained in:
@@ -3,6 +3,8 @@ import { JournalTimetableSorter } from '../../types/JournalTimetablesTypes';
|
||||
export interface TimetablesQueryParams {
|
||||
driverName?: string;
|
||||
trainNo?: string;
|
||||
timetableId?: string;
|
||||
|
||||
authorName?: string;
|
||||
timestampFrom?: number;
|
||||
timestampTo?: number;
|
||||
|
||||
@@ -287,8 +287,7 @@ export default defineComponent({
|
||||
});
|
||||
|
||||
queryParams['driverName'] = driverName;
|
||||
queryParams['trainNo'] = trainNo;
|
||||
|
||||
queryParams[trainNo?.startsWith('#') ? 'timetableId' : 'trainNo'] = trainNo?.replace('#', '');
|
||||
queryParams['countFrom'] = undefined;
|
||||
queryParams['countLimit'] = undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user