Skip to content

Commit

Permalink
Fixed variable suggestions not showing inputs and other variables
Browse files Browse the repository at this point in the history
Closes #1105
  • Loading branch information
openbullet committed Sep 7, 2024
1 parent 9ee380e commit e790b0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ export class ConfigDebuggerComponent implements OnInit, OnDestroy {
// set it to the first one in the list
if (this.settings?.wordlistType !== null && !this.wordlistTypes.includes(this.settings.wordlistType)) {
this.settings.wordlistType = this.wordlistTypes[0];
this.currentWordlistTypeChanged.emit(this.settings.wordlistType);
}

this.currentWordlistTypeChanged.emit(this.settings.wordlistType);

this.debuggerHubService.createHubConnection(this.config.id).then((_) => {
// Request the current state
this.debuggerHubService.getState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,15 @@ export class ConfigStackerComponent implements OnInit {

// This should never happen, but just in case
if (this.envSettings === null) {
console.error('Environment settings not loaded yet');
return suggestions;
}

const wordlistType = this.envSettings.wordlistTypes.find((w) => w.name === this.currentWordlistType);

// This should never happen, but just in case
if (wordlistType === undefined) {
console.error('Wordlist type not found');
return suggestions;
}

Expand All @@ -425,6 +427,7 @@ export class ConfigStackerComponent implements OnInit {

// This should never happen, but just in case
if (this.stack === null) {
console.error('Stack not loaded yet');
return suggestions;
}

Expand Down

0 comments on commit e790b0a

Please sign in to comment.