Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
affiliation-assessor-app
Commits
b08ebb69
Commit
b08ebb69
authored
1 year ago
by
devendra
Browse files
Options
Download
Patches
Plain Diff
Fix: attachment url vvisible even after deleting it
parent
25850305
revert-275-one_form_poc
gitpod
gitpod-uat
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/enketo-express/public/js/src/module/controller-webform.js
+4
-0
...enketo-express/public/js/src/module/controller-webform.js
with
4 additions
and
0 deletions
+4
-0
packages/enketo-express/public/js/src/module/controller-webform.js
+
4
−
0
View file @
b08ebb69
...
...
@@ -711,6 +711,10 @@ function _setEventHandlers(survey) {
const
userId
=
getMeta
(
'
userId
'
);
const
keyToStorage
=
`
${
userId
}
_
${
form
.
model
.
rootElement
.
id
}
_
${
new
Date
().
toISOString
().
split
(
"
T
"
)[
0
]}
`
;
let
olderFiles
=
JSON
.
parse
(
localStorage
.
getItem
(
keyToStorage
))
||
{};
if
(
olderFiles
)
{
//clear the previously stored files
localStorage
.
setItem
(
keyToStorage
,
JSON
.
stringify
({}));
}
await
formController
.
broadcastFormDataUpdate
(
form
.
getDataStr
(),
{});
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets