Fix tests
This commit is contained in:
parent
238b1cecf1
commit
5b6809b913
|
@ -2,7 +2,6 @@ import { writable } from "svelte/store"
|
|||
|
||||
export default class BudiStore {
|
||||
constructor(init, opts) {
|
||||
this.initialState = init
|
||||
const store = writable({ ...init })
|
||||
|
||||
/**
|
||||
|
@ -33,8 +32,4 @@ export default class BudiStore {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
reset = () => {
|
||||
this.store.set({ ...this.initialState })
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,10 @@ export class RowActionStore extends BudiStore {
|
|||
super(initialState)
|
||||
}
|
||||
|
||||
reset = () => {
|
||||
this.store.set(initialState)
|
||||
}
|
||||
|
||||
refreshRowActions = async sourceId => {
|
||||
if (!sourceId) {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue