Skip to content

Commit 1c49f52

Browse files
Copilothotlong
andauthored
style: address code-review nits in RecordFormPage + recordFormNavigation
Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/9713a123-0d2a-468d-91e8-915a540eb95c Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 678d6b3 commit 1c49f52

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

packages/app-shell/src/utils/recordFormNavigation.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,3 @@ export function resolveNavigateEditUrl(opts: {
172172
url: `${baseUrl}/${objectName}/record/${encoded}/edit`,
173173
};
174174
}
175-

packages/app-shell/src/views/RecordFormPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export function RecordFormPage({ mode }: RecordFormPageProps) {
152152
// ModalForm in AppContent so page-mode and modal-mode show the same
153153
// fields for a given user.
154154
const fields = useMemo(() => {
155-
if (!objectDef?.fields) return [] as string[];
155+
if (!objectDef?.fields) return [];
156156
if (Array.isArray(objectDef.fields)) {
157157
return (objectDef.fields as any[])
158158
.filter((f: any) => {
@@ -199,7 +199,7 @@ export function RecordFormPage({ mode }: RecordFormPageProps) {
199199
return (
200200
<ExpressionProvider user={expressionUser} app={{ name: appName }} data={{}}>
201201
<div
202-
className="h-full flex flex-col bg-background overflow-hidden"
202+
className="flex flex-col h-full overflow-hidden bg-background"
203203
data-testid="record-form-page"
204204
data-mode={mode}
205205
>

0 commit comments

Comments
 (0)