Skip to content

Commit

Permalink
Merge branch 'release' of https://github.com/appsmithorg/appsmith int…
Browse files Browse the repository at this point in the history
…o chore/update-action-name
  • Loading branch information
ankitakinger committed Sep 27, 2024
2 parents d506892 + 6368215 commit 73647e5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe(
force: true,
})
.type(
"https://www.facebook.com/users/{{Button2.text}}?key=test&val={{Button2.text}}",
"http://host.docker.internal:5001/{{Button2.text}}?key=test&val={{Button2.text}}",
{ force: true, parseSpecialCharSequences: false },
)
.wait(3000)
Expand All @@ -106,7 +106,7 @@ describe(
.type("{enter}", { parseSpecialCharSequences: true });

cy.validateEvaluatedValue(
"https://www.facebook.com/users/Cancel?key=test&val=Cancel",
"http://host.docker.internal:5001/Cancel?key=test&val=Cancel",
);
});
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ import React from "react";
import APIEditorForm from "./components/APIEditorForm";
import { Flex } from "@appsmith/ads";
import { useChangeActionCall } from "./hooks/useChangeActionCall";
import { usePluginActionContext } from "../../PluginActionContext";
import { UIComponentTypes } from "api/PluginApi";

const PluginActionForm = () => {
useChangeActionCall();
const { plugin } = usePluginActionContext();

return (
<Flex p="spaces-2" w="100%">
<APIEditorForm />
{plugin.uiComponent === UIComponentTypes.ApiEditorForm ? (
<APIEditorForm />
) : null}
</Flex>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function useGetFormActionValues() {

// In an unlikely scenario where form is not initialised,
// return empty values to avoid form ui issues
if (!isAPIAction(formValues)) {
if (!formValues || !isAPIAction(formValues)) {
return {
actionHeaders: [],
actionParams: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function PluginActionResponse() {
expandedHeight={`${ActionExecutionResizerHeight}px`}
isCollapsed={!open}
onSelect={updateSelectedResponseTab}
selectedTabKey={selectedTab || tabs[0].key}
selectedTabKey={selectedTab || tabs[0]?.key}
tabs={tabs}
/>
</IDEBottomView>
Expand Down

0 comments on commit 73647e5

Please sign in to comment.