disable cache
This commit is contained in:
parent
b900d4c28b
commit
cec41d9cbb
|
@ -18,7 +18,8 @@ export class DataRow {
|
||||||
|
|
||||||
static async find(options?: DataRowSearchOptions): Promise<DataRow[]> {
|
static async find(options?: DataRowSearchOptions): Promise<DataRow[]> {
|
||||||
const req = await ky('/api/data/list', {
|
const req = await ky('/api/data/list', {
|
||||||
searchParams: options
|
searchParams: options,
|
||||||
|
cache: 'no-cache'
|
||||||
});
|
});
|
||||||
|
|
||||||
const raw = await req.json<any[]>();
|
const raw = await req.json<any[]>();
|
||||||
|
|
|
@ -20,7 +20,7 @@ export class DataRowSelection {
|
||||||
}
|
}
|
||||||
|
|
||||||
async get(): Promise<DataRow[]> {
|
async get(): Promise<DataRow[]> {
|
||||||
const req = await ky('/api/selection', { method: 'GET' });
|
const req = await ky('/api/selection', { method: 'GET', cache: 'no-cache' });
|
||||||
const data = await req.json();
|
const data = await req.json();
|
||||||
if (!(data instanceof Array)) throw new Array('API returned invalid data');
|
if (!(data instanceof Array)) throw new Array('API returned invalid data');
|
||||||
return data.map(DataRow.reviveJSON)
|
return data.map(DataRow.reviveJSON)
|
||||||
|
|
Loading…
Reference in New Issue