I am having problems getting a save of a remove function to return the correct v

I am having problems getting a save of a remove function to return the correct value. Per the Knowledge Base I have created SAIL code that takes an array of documents, removes the document that was selected in a paging grid, and saves that value to a local variable.
Pertinent code snippets:
load(
local!overrideDocs: apply(fn!document(_,"name"),
{ri!overrideAttachedDocs}
),
LATER-
saveInto: {a!save(local!overrideDocs,(remove(ri!overrideAttachedDocs, local!gridSelection.selected))),
}

The remove part, remove(ri!overrideAttachedDocs, local!gridSelection.selected), returns the expected values, but the save does not.

OriginalPostID-154428

OriginalPostID-154428

  Discussion posts and replies are publicly visible