run lint fix
This commit is contained in:
Родитель
fb388d6e1a
Коммит
acc73d504e
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче