Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
C
cms
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pedro-dev_2
cms
Commits
0e3e8103
Commit
0e3e8103
authored
Jul 12, 2021
by
PDuarte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix remove last-1 page block
parent
8958de4a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
index.js
src/views/menupages/mainpages/card/index.js
+6
-1
No files found.
src/views/menupages/mainpages/card/index.js
View file @
0e3e8103
...
@@ -119,9 +119,14 @@ const handleError = (text) => {
...
@@ -119,9 +119,14 @@ const handleError = (text) => {
newData
.
menu_page_layouts
=
dataElement
.
menu_page_layouts
.
filter
((
item
,
index
)
=>
index
!==
value
)
newData
.
menu_page_layouts
=
dataElement
.
menu_page_layouts
.
filter
((
item
,
index
)
=>
index
!==
value
)
setElementData
(
newData
)
setElementData
(
newData
)
if
(
activeTab
===
newData
.
menu_page_layouts
.
length
-
1
)
{
setActiveTab
(
0
)
}
else
{
setActiveTab
(
newData
.
menu_page_layouts
.
length
-
1
)
setActiveTab
(
newData
.
menu_page_layouts
.
length
-
1
)
}
}
}
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
selectedElement
!==
null
||
(
selectedElement
!==
null
&&
dataElement
!==
null
&&
selectedElement
.
id
!==
dataElement
.
id
))
{
if
(
selectedElement
!==
null
||
(
selectedElement
!==
null
&&
dataElement
!==
null
&&
selectedElement
.
id
!==
dataElement
.
id
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment