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