Skip to content

Commit

Permalink
fixup outdent/indent functions for outline nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Sep 9, 2024
1 parent 7b3b783 commit 9f96089
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/radiator/outline.ex
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ defmodule Radiator.Outline do
{:ok, {:error, error}} ->
{:error, error}

{:ok, node} ->
{:ok, node}
{:ok, {:ok, node_result}} ->
{:ok, node_result}

{:error, error} ->
{:error, error}
Expand Down
2 changes: 1 addition & 1 deletion test/radiator/outline_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ defmodule Radiator.OutlineTest do
} do
{:ok, result} = Outline.intend_node(node_2.uuid)
assert result.node.parent_id == node_1.uuid
assert result.node.old_prev_id == node_1.uuid
assert result.old_prev_id == node_1.uuid
end

# before 1 2
Expand Down

0 comments on commit 9f96089

Please sign in to comment.