Skip to content

Commit b4f8f25

Browse files
committed
fix lint issues
1 parent 5ebbde5 commit b4f8f25

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/react/src/auto/shadcn/inputs/relationships/ShadcnAutoBelongsToForm.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ export const makeShadcnAutoBelongsToForm = ({
203203
</div>
204204

205205
<Dialog open={modalOpen} onOpenChange={() => setModalOpen(!modalOpen)}>
206-
<RelationshipContext.Provider value={{ transformPath: (path) => pathPrefix + "." + path, transformMetadataPath: (path) => metaDataPathPrefix + "." + path }}>
206+
<RelationshipContext.Provider
207+
value={{ transformPath: (path) => pathPrefix + "." + path, transformMetadataPath: (path) => metaDataPathPrefix + "." + path }}
208+
>
207209
<DialogContent className="bg-white">
208210
<DialogHeader>
209211
<DialogTitle>Add {parentName}</DialogTitle>

packages/react/src/useBelongsToForm.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ export const useBelongsToForm = (props: {
5050

5151
const parentName = metadata.name ?? "Unknown";
5252

53-
const metaDataPathPrefix = relationshipContext?.transformMetadataPath ? relationshipContext.transformMetadataPath(props.field) : props.field;
53+
const metaDataPathPrefix = relationshipContext?.transformMetadataPath
54+
? relationshipContext.transformMetadataPath(props.field)
55+
: props.field;
5456

5557
return {
5658
record,

0 commit comments

Comments
 (0)