Skip to content
Snippets Groups Projects
Commit b1815fae authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #23871 TIME 0:05 check if reference is not empty

parent fd68d94b
No related branches found
No related tags found
No related merge requests found
......@@ -67,11 +67,13 @@ export class IndexationComponent implements OnInit {
this.http.get(`../rest/documents/${resId}`).pipe(
tap((data: any) => {
let ref = '';
let arrRef = data.document.reference.split('/');
arrRef = arrRef.slice(3, arrRef.length);
if (!this.functionsService.empty(data.document.reference)) {
let arrRef = data.document.reference.split('/');
arrRef = arrRef.slice(3, arrRef.length);
if (arrRef.length > 0) {
ref = arrRef.join('/');
if (arrRef.length > 0) {
ref = arrRef.join('/');
}
}
this.filesToUpload.push({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment