logged in user read and write page

Oh I have reverted to a previous site version. I still can’t seem to save the data from the previous page which is the code above into the collection as a single set of data in one row, its saving the image but not the text entries

when the previous page saves and locates to the review page i have this code,

import wixData from ‘wix-data’;
wixData.query(“TextData”)
.eq(“iD”. userId)
.limit(1)
.find()
.then( (results) => {
let firstItem = results.items[0];
} )
. catch ( (err) => { let errorMsg = err; } );
$w.onReady( () => {
$w(“#dataset5”).onReady( () => {
$w(“#dataset5”).revert()
.then( () => {
console.log(“Done reverting the item”);
} )
. catch ( (err) => {
let errMsg = err;
} );

} );

} );

I have used the revert function to pull the last row from the collection