You are getting an error message: Wix code SDK error: The id parameter of item at index 2 is required for columns method.
The reason for this is an incorrect columns property for the Table. You had three columns (the third one was null which caused an error), and the dataPath parameters were incorrect. Not sure why you have this since it’s not really needed, but if you really insist, it should look something like this:
import wixData from 'wix-data';
export function button1_click(event, $w) {
//// Runs a query on the "Jobs" collection
wixData.query('Jobs')
// Query the collection for any items whose "Title" field contains
// the value the user entered in the input element
.contains('title', $w('#input1').value)
.find() // Run the query
.then(res => {
// Set the table data to be the results of the query
$w('#table1').rows = res.items;
});
}
$w.onReady(function () {
$w("#table1").columns = [{
"id": "col1",
"dataPath": "title",
"label": "title",
"width": 100,
"visible": true,
"type": "string",
}, {
"id": "col2",
"dataPath": "newField11",
"label": "Location",
"width": 100,
"visible": true,
"type": "string",
}];
});