Skip to content

Commit

Permalink
Set a value for the 'id' attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed Nov 17, 2024
1 parent d6c2dee commit 1b92e40
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion UI/src/components/ConfigTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ function u(relURL) {
</tbody>
<tfoot v-if="hasCreate">
<ConfigTableRow
id=""
:defaultSelectable="props.defaultSelectable"
:columns="props.columns"
:editingId="editingId"
Expand Down
2 changes: 1 addition & 1 deletion UI/src/store/configTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const configStoreTemplate = {
return this.items[index];
},
getById(id) {
if (id === "") {
if (typeof id === undefined) {

Check failure on line 93 in UI/src/store/configTemplate.js

View workflow job for this annotation

GitHub Actions / webpack

Unexpected constant binary expression. Compares constantly with the right-hand side of the `===`

Check failure on line 93 in UI/src/store/configTemplate.js

View workflow job for this annotation

GitHub Actions / webpack

Invalid typeof comparison value

Check warning

Code scanning / CodeQL

Comparison between inconvertible types Warning

This expression is of type string, but it is compared to
'undefined'
of type undefined.
const rv = {};
this.fields.forEach((f) => {
rv[f] = undefined;
Expand Down

0 comments on commit 1b92e40

Please sign in to comment.