This commit is contained in:
Judith de la Fuente 2021-05-24 15:02:51 +02:00
Родитель fb388d6e1a
Коммит acc73d504e
6 изменённых файлов: 11 добавлений и 16 удалений

Просмотреть файл

@ -29,9 +29,8 @@ const ResourceGroupSelection = (props: Props) => {
const { subscription, resourceGroup, onResourceGroupChange } = props;
const subscriptions = useSelector((state: AppState) => getSubscriptionsSelector(state));
const [dropdownResourceGroups, setDropdownResourceGroups] = useState<IDropDownOptionType[]>([]);
const [selectedDropdownResourceGroup, setSelectedDropdownResourceGroup] = useState<IDropDownOptionType | undefined>(
undefined
);
const [selectedDropdownResourceGroup, setSelectedDropdownResourceGroup] =
useState<IDropDownOptionType | undefined>(undefined);
const [isRefresh, setIsRefresh] = useState(false);
const DEFAULT_RESOURCE_GROUP: IDropDownOptionType = {

Просмотреть файл

@ -27,9 +27,8 @@ const SelectFrameworks = (props: Props) => {
const frontendFrameworks = useSelector((state: AppState) => getDropdownFrontendFrameworksSelector(state));
const backendFrameworks = useSelector((state: AppState) => getDropdownBackendFrameworksSelector(state));
const [selectedFrontendFramework, setSelectedFrontendFramework] = useState<IDropDownOptionType | undefined>(
undefined
);
const [selectedFrontendFramework, setSelectedFrontendFramework] =
useState<IDropDownOptionType | undefined>(undefined);
const [selectedBackendFramework, setSelectedBackendFramework] = useState<IDropDownOptionType | undefined>(undefined);
const { intl } = props;

Просмотреть файл

@ -68,9 +68,8 @@ const DraggablePage = ({
const moveDownScroll = () => {
if (document.getElementById("dvRightSideBar") && document.getElementById("dvSummaryContainer"))
document.getElementById("dvRightSideBar")!.scrollTop = document.getElementById(
"dvSummaryContainer"
)!.offsetHeight;
document.getElementById("dvRightSideBar")!.scrollTop =
document.getElementById("dvSummaryContainer")!.offsetHeight;
};
const setFocus = () => {
const node = inputRef.current!;

Просмотреть файл

@ -117,7 +117,7 @@ export const getInitialState = (): AppState => {
projectName: "myApp",
validation: {
isValid: true,
error: ("" as unknown) as FormattedMessage.MessageDescriptor,
error: "" as unknown as FormattedMessage.MessageDescriptor,
isDirty: true,
},
},

Просмотреть файл

@ -21,9 +21,8 @@ const backendFrameworkOptions = (state: IOption[] = [], action: RootAction): IOp
case TEMPLATES_TYPEKEYS.UPDATE_FRAMEWORK:
const newStateUpdate = [...state];
for (const frameworkToUpdate of action.payload) {
newStateUpdate.filter(
(framework) => framework.internalName === frameworkToUpdate.internalName
)[0] = frameworkToUpdate;
newStateUpdate.filter((framework) => framework.internalName === frameworkToUpdate.internalName)[0] =
frameworkToUpdate;
}
return newStateUpdate;
default:

Просмотреть файл

@ -21,9 +21,8 @@ const frontendFrameworkOptions = (state: IOption[] = [], action: RootAction): IO
case TEMPLATES_TYPEKEYS.UPDATE_FRAMEWORK:
const newStateUpdate = [...state];
for (const frameworkToUpdate of action.payload) {
newStateUpdate.filter(
(framework) => framework.internalName === frameworkToUpdate.internalName
)[0] = frameworkToUpdate;
newStateUpdate.filter((framework) => framework.internalName === frameworkToUpdate.internalName)[0] =
frameworkToUpdate;
}
return newStateUpdate;
default: