page grid update: load less data
This commit is contained in:
1 parent
1318328fe7
commit
e800de1f92
5 files changed
+100
-89
No files matched your search
@@ -1,3 +1,13 @@
|
||||
export function isPartOfPath(part: string, path: string): boolean {
|
||||
return path.startsWith(part)
|
||||
}
|
||||
|
||||
export function queryList(key: string, values: string[]): string {
|
||||
if (values.length === 0) {
|
||||
return ''
|
||||
}
|
||||
|
||||
return values
|
||||
.map(value => `${key}=${value}`)
|
||||
.join('&')
|
||||
}
|
||||
Reference in new issue
Block a user