Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
zango-frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 82bf06e8
authored
2024-06-13 16:45:05 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
pincode
1 parent
e2e91aa2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
components/vendor/ActivityDetails.js
components/vendor/ActivityDetails.js
View file @
82bf06e
...
...
@@ -312,7 +312,10 @@ const ActivityDetails = ({ isUpdate }) => {
return
;
}
let
pincodeDataSet
=
await
pincodeSearchByFilter
(
pin
);
// console.log("pincodeData", pincodeDataSet.data.data);
console
.
log
(
"pincodeDataSet.data.data"
,
pincodeDataSet
.
data
.
data
);
// if (pincodeDataSet.data.data.length > 0) {
// return { label: "no values available" };
// }
setPinCodeData
(
pincodeDataSet
.
data
.
data
);
};
...
...
@@ -342,7 +345,7 @@ const ActivityDetails = ({ isUpdate }) => {
// useEffect(() => {
// dispatch(updateActivityById(8))
// }, [])
console
.
log
(
"pincodeData"
,
pincodeData
&&
pincodeData
.
length
>
0
);
console
.
log
(
"activityById"
,
activityById
);
console
.
log
(
"activityPeriodState"
,
activityPeriodState
);
return
(
...
...
@@ -585,11 +588,11 @@ const ActivityDetails = ({ isUpdate }) => {
id
=
"basic-behaviors-example"
labelKey
=
"name"
options
=
{
pincodeData
&&
pincodeData
.
length
>
0
&&
pincodeData
.
map
(
item
=>
{
pincodeData
&&
pincodeData
.
length
>
0
?
pincodeData
.
map
(
item
=>
{
return
{
name
:
item
.
attributes
.
name
,
id
:
item
.
id
};
})
:
[{}]
}
placeholder
=
"Choose a pincode"
ref
=
{
ref
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment