Skip to content

Commit 6db1538

Browse files
committed
fix(plugin-list): take isPlainRecord from @objectstack/spec/data rather than redeclaring it
Claude-Session: https://claude.ai/code/session_01ADHkmRGDrq6JSytBsNFabU Co-authored-by: Claude <noreply@anthropic.com>
1 parent 749ddb3 commit 6db1538

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎ui/packages/plugin-list/src/conditions/conditionModel.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
FILTER_SELECT_LIKE_TYPES,
2626
} from '@object-ui/types';
2727
import { jsonColumnFilterOperators } from '@object-ui/components';
28+
import { isPlainRecord } from '@objectstack/spec/data';
2829
import type { FilterBuilderRow, FilterBuilderRowGroup, SortItem } from '@object-ui/components';
2930

3031
/** One field the condition controls can name: the shape the list's field lists already carry. */
@@ -253,10 +254,6 @@ function readElement(element: unknown, key: string): ViewConditionChip {
253254
return { key };
254255
}
255256

256-
function isPlainRecord(value: unknown): value is Record<string, unknown> {
257-
return !!value && typeof value === 'object' && !Array.isArray(value);
258-
}
259-
260257
/** The nested-relation form as written, `{ <lookup>: { <field>: V } }`, as a path chip. */
261258
function nestedRelationChip(filter: unknown, key: string): ViewConditionChip | undefined {
262259
if (!isPlainRecord(filter)) return undefined;

0 commit comments

Comments
 (0)