Skip to content

Commit

Permalink
fix: other stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadch91 committed Dec 21, 2024
1 parent a377411 commit 7709279
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,16 @@ export default function IntegrationList({
)
.then((res) => {
const data = res.data
console.log(data?.integration_types)
setResourceTypes(data?.integration_types)
const temp : any = []
data?.integration_types?.map((item: any) => {
temp.push({
label: item?.name,
value: item?.name,
params: item?.params,
})
})
setSelectedResourceType(temp)
})
.catch((err) => {
console.log(err)
Expand Down Expand Up @@ -747,7 +755,7 @@ export default function IntegrationList({
onChange={({ detail }) => {
setSelectedResourceType(detail.selectedOptions)
}}
tokenLimit={2}
tokenLimit={0}
placeholder="Select resource type"
/>
</Modal>
Expand Down
2 changes: 1 addition & 1 deletion services/web-ui/src/pages/Settings/Entitlement/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export default function SettingsEntitlement() {
axios
.get(`${url}/main/metadata/api/v3/sample/sync/status `, config)
.then((res) => {
if (res?.data?.progress !== 1 || res?.data?.progress !== 0) {
if (res?.data?.progress !== 1 && res?.data?.progress !== 0) {
// @ts-ignore
setLoaded('True')
localStorage.setItem('sample', 'true')
Expand Down

0 comments on commit 7709279

Please sign in to comment.