Skip to content

Commit

Permalink
Fix: Fix validation
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Aug 30, 2024
1 parent 83df13b commit c364291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/app/controllers/api/charts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def initialize(params, user_id)
@composer = params[:composer]
@artist = params[:artist]
@rating = params[:rating]
@tags = params[:tags]
@tags = params[:tags].split(",").map(&:strip).filter(&:present?)
@author_handle = params[:authorHandle]
@author_name = params[:authorName]
@is_chart_public = params[:isChartPublic]
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/routes/charts.$name._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ const ChartPage = () => {
<TagRegular className="mr-1 w-6 h-6" />
{chartData.tags.map((tag, i) => (
<Fragment key={i}>
<Link to={pathcat("/charts", { tags: tag })}>{tag}</Link>
<Link className="gray-link" to={pathcat("/charts", { tags: tag })}>{tag}</Link>
{i < chartData.tags.length - 1 && rootT("separator")}
</Fragment>
))}
Expand Down

0 comments on commit c364291

Please sign in to comment.