Skip to content

Commit

Permalink
Merge pull request #3 from iGLOO-be/main
Browse files Browse the repository at this point in the history
backport main
  • Loading branch information
Fridus committed Mar 11, 2024
2 parents fdfb720 + 524cdd2 commit 3de34c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
node: ['18.x', '20.x']
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest, macOS-latest]

steps:
- name: Checkout repo
Expand Down
2 changes: 1 addition & 1 deletion src/BlocksInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const useBlockInput = <
if (blockDefinition.FormComponent) {
setEditBlockDefinitionState({
blockDefinitionId: blockDefinitionId,
blockData: newBlockData,
blockData: newBlockData as any,
});
} else {
append({
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface BlockDefinition<
FormComponent?: BlockForm<
C extends undefined ? undefined : DefaultContext & C
>;
formDefaultValue?: any;
formDefaultValue?: Partial<P>;
disableInsert?: boolean;
PreviewComponent?: IPreviewComponent<
BlockRecord<any, P>,
Expand Down

0 comments on commit 3de34c0

Please sign in to comment.