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
2Abendsegler authored Jan 11, 2024
2 parents 92246e3 + fefeaff commit cd46d24
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 cd46d24

Please sign in to comment.