Remove references of plugin name

This commit is contained in:
Hetu Nandu 2020-04-29 13:17:51 +00:00
parent 744ce9f5af
commit 2cf1b8d135
2 changed files with 1 additions and 9 deletions

View File

@ -7,9 +7,7 @@ export const HTTP_METHOD_OPTIONS = HTTP_METHODS.map(method => ({
value: method,
}));
export const PLUGIN_NAME = "RestTemplatePluginExecutor";
export const REST_PLUGIN_PACKAGE_NAME = "restapi-plugin";
export const PLUGIN_NAME_RAPIDAPI = "Rapid API Plugin";
export const DEFAULT_API_ACTION: Partial<RestAction> = {
actionConfiguration: {

View File

@ -18,8 +18,6 @@ import {
initApiPane,
} from "actions/apiPaneActions";
import { RestAction } from "api/ActionAPI";
import { getPluginIdOfName } from "selectors/entitiesSelector";
import { PLUGIN_NAME } from "constants/ApiEditorConstants";
import EditorSidebar from "pages/Editor/EditorSidebar";
import { getNextEntityName } from "utils/AppsmithUtils";
import AnalyticsUtil from "utils/AnalyticsUtil";
@ -65,7 +63,6 @@ const ActionName = styled.span`
interface ReduxStateProps {
actions: ActionDataState;
apiPane: ApiPaneReduxState;
pluginId: string | undefined;
}
interface ReduxDispatchProps {
@ -190,10 +187,8 @@ class ApiSidebar extends React.Component<Props> {
params: { apiId },
},
actions,
pluginId,
} = this.props;
if (!pluginId) return null;
const data = actions.map(a => a.config);
const data = actions.map(a => a.config).filter(a => a.pluginType === "API");
return (
<EditorSidebar
isLoading={isFetching}
@ -213,7 +208,6 @@ class ApiSidebar extends React.Component<Props> {
}
const mapStateToProps = (state: AppState): ReduxStateProps => ({
pluginId: getPluginIdOfName(state, PLUGIN_NAME),
actions: state.entities.actions,
apiPane: state.ui.apiPane,
});