mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-25 02:26:14 +03:00
fix: Update the type of the drop down button
Fix up the type of variable used to refernce the drop down button in the PR button component
This commit is contained in:
parent
3fc1687f86
commit
94fa0fed5d
@ -23,7 +23,7 @@
|
||||
const { loading, disabled, tooltip, click }: Props = $props();
|
||||
|
||||
const preferredAction = persisted<Action>(Action.Create, 'projectDefaultPrAction');
|
||||
let dropDown: DropDownButton;
|
||||
let dropDown = $state<ReturnType<typeof DropDownButton>>();
|
||||
|
||||
$effect(() => {
|
||||
if (!Object.values(Action).includes($preferredAction)) {
|
||||
@ -49,7 +49,7 @@
|
||||
label={labels[method]}
|
||||
on:click={() => {
|
||||
preferredAction.set(method);
|
||||
dropDown.close();
|
||||
dropDown?.close();
|
||||
}}
|
||||
/>
|
||||
{/each}
|
||||
|
Loading…
Reference in New Issue
Block a user