Check that your filtering on xano is correct in the function stack. It should have the filter that input id = record db id. It’s quite an easy mistake to make to accidentally put something like input id = input id.
You seem to be passing an input called id from adalo, but the if-else statement is referencing an input called filter_id. The naming of the parameter on the Adalo side is incorrect, or just rename your input parameter (and subsequent references to it) on the Xano side.