Skip to content

Commit

Permalink
ui: fix function indent & variables
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Hivert <[email protected]>
  • Loading branch information
ghivert committed May 12, 2024
1 parent 92f9641 commit d370658
Show file tree
Hide file tree
Showing 4 changed files with 5,977 additions and 3,183 deletions.
4 changes: 2 additions & 2 deletions apps/frontend/src/data/decoders/signature.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn decode_type(dyn) {
}

fn decode_variable(dyn) {
dynamic.decode1(fn(a) { Variable(a, 1) }, dynamic.field("id", dynamic.int))(
dynamic.decode1(fn(a) { Variable(1, a) }, dynamic.field("id", dynamic.int))(
dyn,
)
}
Expand Down Expand Up @@ -134,7 +134,7 @@ fn decode_parameter(dyn) {
Parameter(width, a, b)
},
dynamic.field("label", dynamic.optional(dynamic.string)),
dynamic.field("type", decode_type),
dynamic.field("params_type", decode_type),
)(dyn)
}

Expand Down
4 changes: 3 additions & 1 deletion apps/frontend/src/data/model.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ pub type Model {
}

pub fn init() {
let search_results = result.unwrap(mock.mock(), [])
let search_results =
mock.mock()
|> result.unwrap([])
Model(input: "", search_results: search_results)
}

Expand Down
Loading

0 comments on commit d370658

Please sign in to comment.