update test
This commit is contained in:
@@ -42,6 +42,11 @@ export class IssuesStore {
|
||||
return this.data().find((i) => i.id === id);
|
||||
}
|
||||
|
||||
getNextId(): number {
|
||||
const ids = this.data().map((i) => i.id);
|
||||
return ids.length === 0 ? 1 : Math.max(...ids) + 1;
|
||||
}
|
||||
|
||||
async load(): Promise<void> {
|
||||
if (this.loaded()) return;
|
||||
this.loading.set(true);
|
||||
|
||||
Reference in New Issue
Block a user