Skip to content

Commit

Permalink
add repository to base row constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
narthur committed Apr 11, 2024
1 parent af71884 commit 3c4ecbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ export abstract class Row<T extends RowType> {
protected rowId: number;
protected row: T;
protected sdk: BaserowSdk;
protected repository: Factory;

constructor({ tableId, rowId, row, sdk }: RowOptions<T>) {
constructor({ tableId, rowId, row, sdk, repository }: RowOptions<T>) {
this.tableId = tableId;
this.rowId = rowId;
this.row = row;
this.sdk = sdk;
this.repository = repository;
}

public getRow(): T {
Expand Down

0 comments on commit 3c4ecbe

Please sign in to comment.