Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 76c6fb4

Browse files
committed
fixed relation dv
1 parent 0276ed0 commit 76c6fb4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/components/cellTypes/Editor/RelationEditor.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const RelationEditor = (props: RelationEditorComponentProps) => {
1515
const { table, column } = defaultCell;
1616
const tableColumn = column.columnDef as TableColumn;
1717
const { tableState } = table.options.meta;
18-
const configInfo = tableState.configState((state) => state.info);
1918
const columnsInfo = tableState.columns((state) => state.info);
2019

2120
const [relationValue, setRelationValue] = useState(

src/helpers/RelationHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function recordRowsFromRelation(ddbbPath: string, ddbbConfig: Local
3434

3535
const ddbbRows = await sourceDataviewPages(ddbbInfo.yaml.config, ddbbFile.parent.path, columns);
3636
ddbbRows
37-
.filter((page) => page[DatabaseCore.FRONTMATTER_KEY] === undefined)
37+
.filter((page) => !page[DatabaseCore.FRONTMATTER_KEY])
3838
.forEach((page) => {
3939
const file = (page as SMarkdownPage).file;
4040
relationRows[file.path] = file.name;

0 commit comments

Comments
 (0)