Skip to content

Commit

Permalink
style of relation inside multplevalues
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGB committed Feb 26, 2023
1 parent bf54d39 commit 8937e21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/cellTypes/Editor/RelationEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { c } from "helpers/StylesHelper";
import { TableColumn } from "cdm/FolderModel";
import { Link } from "obsidian-dataview";
import { ActionMeta, OnChangeValue } from "react-select";
import { StyleVariables } from "helpers/Constants";
import ClickAwayListener from "@mui/material/ClickAwayListener";
import CreatableSelect from "react-select/creatable";
import { RelationalService } from "services/RelationalService";
Expand All @@ -21,7 +20,7 @@ const RelationEditor = (props: RelationEditorComponentProps) => {
? relationCell.map((link: Link) => ({
label: link.fileName(),
value: link.path,
color: StyleVariables.TEXT_NORMAL,
color: tableColumn.config.relation_color,
}))
: []
);
Expand All @@ -46,7 +45,7 @@ const RelationEditor = (props: RelationEditorComponentProps) => {
const arrayTags = newValue.map((tag) => ({
label: tag.label,
value: tag.value,
color: StyleVariables.TEXT_NORMAL,
color: tableColumn.config.relation_color,
}));
setRelationValue(arrayTags);
};
Expand Down

0 comments on commit 8937e21

Please sign in to comment.