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
db164d0e
Commit
db164d0e
authored
Jul 06, 2021
by
PDuarte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove page block UI fix
parent
21a61d7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
index.js
src/views/menupages/mainpages/card/index.js
+5
-8
No files found.
src/views/menupages/mainpages/card/index.js
View file @
db164d0e
...
...
@@ -115,14 +115,11 @@ const handleError = (text) => {
},
handleRMBlock
=
(
value
)
=>
{
console
.
log
(
`Removing Block
${
value
}
`
)
const
data
=
[...
dataElement
.
menu_page_layouts
]
const
newData
=
data
.
filter
((
item
,
index
)
=>
index
!==
value
)
setActiveTab
(
0
)
setElementData
({
...
dataElement
,
menu_page_layouts
:
newData
})
const
newData
=
dataElement
newData
.
menu_page_layouts
=
dataElement
.
menu_page_layouts
.
filter
((
item
,
index
)
=>
index
!==
value
)
setElementData
(
newData
)
setActiveTab
(
newData
.
menu_page_layouts
.
length
-
1
)
}
...
...
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