From fd9f8c3ad9f32e48f909600fd665ff841e493f07 Mon Sep 17 00:00:00 2001 From: Gang Li Date: Tue, 6 Feb 2024 12:59:21 +0800 Subject: [PATCH] Fix two warnings during test --- src/main/webui/src/app/components/content/group/GroupEdit.jsx | 4 ++-- .../webui/src/app/components/content/hosted/HostedEdit.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/webui/src/app/components/content/group/GroupEdit.jsx b/src/main/webui/src/app/components/content/group/GroupEdit.jsx index 188a4cc..016f4e9 100644 --- a/src/main/webui/src/app/components/content/group/GroupEdit.jsx +++ b/src/main/webui/src/app/components/content/group/GroupEdit.jsx @@ -85,7 +85,7 @@ const EditConstituents = ({store, currentAvailable}) => { return
    - (hover for controls) + (hover for controls) { store.constituents && store.constituents.map((item, index) =>
  1. {item}
    @@ -124,7 +124,7 @@ const EditConstituents = ({store, currentAvailable}) => { }
    - (click to add to constituents) + (click to add to constituents) { currentAvailable && currentAvailable.map(item => store.packageType !== "" && item.startsWith(store.packageType) &&
  1. { diff --git a/src/main/webui/src/app/components/content/hosted/HostedEdit.jsx b/src/main/webui/src/app/components/content/hosted/HostedEdit.jsx index 8c31943..c414bd8 100644 --- a/src/main/webui/src/app/components/content/hosted/HostedEdit.jsx +++ b/src/main/webui/src/app/components/content/hosted/HostedEdit.jsx @@ -75,7 +75,7 @@ const EditCapabilities = ({allowReleases, allowSnapshots, register}) => { EditCapabilities.propTypes = { allowReleases: PropTypes.bool, allowSnapshots: PropTypes.bool, - register: PropTypes.function, + register: PropTypes.func }; export default function HostedEdit() {