Skip to content

Commit

Permalink
chore: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
luqven committed Jun 20, 2024
1 parent 11fa6f7 commit fa4f4f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ export default class Dialog extends Component<DialogProps, DialogState> {

// check if previously selected source exists
// if it does, add it to state.
const previouslySelectedSource =
const previouslySelectedSourceID =
invocationParams?.selectedImage?.selectedSource?.id ||
installationParams.sourceID;

const selectedSource = sources.find((source: any) => {
return source.id === previouslySelectedSource;
return source.id === previouslySelectedSourceID;
});

if (selectedSource) {
Expand Down

0 comments on commit fa4f4f8

Please sign in to comment.