Skip to content

Commit

Permalink
Improve structure metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianTovar committed Jul 12, 2024
1 parent 8aeb0f7 commit 6df0229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/beacon/live_admin/live/page_editor_live/new.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ defmodule Beacon.LiveAdmin.PageEditorLive.New do
id = Ecto.UUID.generate()

Check warning on line 37 in lib/beacon/live_admin/live/page_editor_live/new.ex

View workflow job for this annotation

GitHub Actions / test: OTP 25.1 | Elixir 1.13.4 | Phoenix 1.7.0 | LiveView 0.20.2

variable "id" is unused (if the variable is not meant to be used, prefix it with an underscore)

%Beacon.Content.Page{
path: "/page-#{id}",
path: "/New Page #{NaiveDateTime.utc_now()}",
site: site,
layout_id: layout.id,
layout: layout,
title: "/page-#{id}",
title: "New Page",
template: "<div>Welcome to BeaconCMS!</div>"
}
end
Expand Down

0 comments on commit 6df0229

Please sign in to comment.