Skip to content

Commit

Permalink
[Log Form] Default logtypes run into error: can't convert null to object
Browse files Browse the repository at this point in the history
  • Loading branch information
DieBatzen committed Jan 11, 2024
1 parent 92246e3 commit fefeaff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gc_little_helper_II.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4814,8 +4814,8 @@ var mainGC = function() {
// Default logtypes.
function setDefaultLogtype(waitCount) {
// Get React properties of logtype selection.
const logtype_selection = document.querySelector('.css-i2jsxq-control'),
obj_keys = Object.keys(logtype_selection);
const logtype_selection = document.querySelector('#react-select-cache-log-type-input').parentElement.parentElement;
const obj_keys = Object.keys(logtype_selection);
// If cache owner and React properties are present set logtype.
if ($('.hidden-by a')[0] && $('.hidden-by a')[0].innerText && obj_keys[0]) {
// Get default logtype.
Expand Down

0 comments on commit fefeaff

Please sign in to comment.