Skip to content

Commit 1fb2d4e

Browse files
jaags-devgaya3-vijayakumartahierhussain
authored
Moved option button to end in prompt card (#542)
* moved option button to end in pormpt card * Enable prompt fix --------- Signed-off-by: jagadeeswaran-zipstack <jagadeeswaran@zipstack.com> Co-authored-by: Gayathri <142381512+gaya3-zipstack@users.noreply.github.com> Co-authored-by: Tahier Hussain <89440263+tahierhussain@users.noreply.github.com>
1 parent bff7619 commit 1fb2d4e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • frontend/src/components/custom-tools/prompt-card

frontend/src/components/custom-tools/prompt-card/Header.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function Header({
105105
}
106106

107107
setItems(dropdownItems);
108-
}, []);
108+
}, [promptDetails]);
109109

110110
return (
111111
<Row>
@@ -210,6 +210,7 @@ function Header({
210210
</Tooltip>
211211
</>
212212
)}
213+
<ExpandCardBtn expandCard={expandCard} setExpandCard={setExpandCard} />
213214
{isSimplePromptStudio && PromptRunBtnSps && (
214215
<PromptRunBtnSps
215216
spsLoading={spsLoading}
@@ -227,8 +228,6 @@ function Header({
227228
<MoreOutlined className="prompt-card-actions-head" />
228229
</Button>
229230
</Dropdown>
230-
231-
<ExpandCardBtn expandCard={expandCard} setExpandCard={setExpandCard} />
232231
</Col>
233232
</Row>
234233
);

0 commit comments

Comments
 (0)