Skip to content

Commit

Permalink
Fix issues with metadata display
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed May 18, 2024
1 parent 85b6d62 commit 4b4fcc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Item/ItemContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ function checkCheckbox(stateManager: StateManager, title: string, checkboxIndex:
export function Tags({ tags, searchQuery }: { tags?: string[]; searchQuery?: string }) {
const { stateManager, getTagColor } = useContext(KanbanContext);
const search = useContext(SearchContext);
const shouldShow = stateManager.useSetting('move-tags');

if (!tags.length) return null;
if (!tags.length || !shouldShow) return null;

return (
<div className={c('item-tags')}>
Expand Down
1 change: 1 addition & 0 deletions src/components/Item/MetadataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export function getLinkFromObj(v: any, view: KanbanView) {
}

function getDate(v: any) {
if (typeof v === 'string' && /\d{4}-\d{2}-\d{2}/.test(v)) return moment(v);
if (moment.isMoment(v)) return v;
if (v.ts) return moment(v.ts);
if (v instanceof Date) return moment(v);
Expand Down

0 comments on commit 4b4fcc5

Please sign in to comment.