Skip to content

Commit

Permalink
🐛 Fixed a issue with Queue settings which did not allow users to togg…
Browse files Browse the repository at this point in the history
…le some settings
  • Loading branch information
ryantanen committed Feb 12, 2025
1 parent 524282d commit 7f9e637
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,6 @@ const QueueFormFields = ({
}
setInput({ ...input });
};

const handlePinInputChange = (e, { checked }) => {
input.pinEnabled = checked;
setInput({ ...input });
};
/* PROPS UPDATE */

return (
Expand Down Expand Up @@ -246,7 +241,12 @@ const QueueFormFields = ({
id="pin-toggle"
toggle
disabled={loading}
onChange={handlePinInputChange}
onClick={() =>
setInput({
...input,
pinEnabled: !input.pinEnabled,
})
}
/>
</Form.Field>

Expand All @@ -261,9 +261,9 @@ const QueueFormFields = ({
name="rateLimitEnabled"
id="rate-limit-toggle"
toggle
defaultChecked={input.rateLimitEnabled}
checked={input.rateLimitEnabled}
label="Enable queue rate-limiting"
onChange={() =>
onClick={() =>
setInput({
...input,
rateLimitEnabled: !input.rateLimitEnabled,
Expand Down

0 comments on commit 7f9e637

Please sign in to comment.