I am having trouble displaying recent transactions as I keep getting the error: cannot read properties of undefined
Here are the links to the relevant files. I would appreciate anyone with some valuable insight, thanks.
Links:
TransactionsTable.tsx: https://hastebin.com/share/doteqecozo.javascript
bank.actions.ts: https://hastebin.com/share/fisinulipo.typescript
Here's the error messages: An error occurred while getting the account: TypeError: Cannot read properties of undefined (reading 'documents')
at $$ACTION_1 (webpack-internal:///(rsc)/./lib/actions/bank.actions.ts:91:63)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Home (webpack-internal:///(rsc)/./app/(root)/page.tsx:42:21)
GET /?id=665996b2003dfc4a1e96&_rsc=1x5f5 200 in 7379ms
AppwriteException [Error]: Invalid query: Attribute not found in schema: senderBankId