Skip to content

Commit

Permalink
fix(core): tag color should use palette-line-color
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmFly committed Mar 26, 2024
1 parent 095f8c2 commit cbb9a21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/frontend/core/src/modules/tag/entities/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { PageRecordList } from '@toeverything/infra';
import { LiveData } from '@toeverything/infra';

import type { WorkspaceLegacyProperties } from '../../workspace';
import { tagColorMap } from './utils';

export class Tag {
constructor(
Expand All @@ -17,7 +18,7 @@ export class Tag {

value$ = this.tagOption$.map(tag => tag?.value || '');

color$ = this.tagOption$.map(tag => tag?.color || '');
color$ = this.tagOption$.map(tag => tagColorMap(tag?.color) || '');

createDate$ = this.tagOption$.map(tag => tag?.createDate || Date.now());

Expand Down

0 comments on commit cbb9a21

Please sign in to comment.