AnsweredAssumed Answered

Error with a combination of adf-document-list & adf-upload-button

Question asked by d.moeyersons on Jul 10, 2018
Latest reply on Jul 10, 2018 by dvuika

Hi,

 

I get an error when i use the adf-document-list and adf-upload-button in a specific way in ADF 2.4.

<adf-toolbar>
  <adf-toolbar-title>
    <adf-breadcrumb
      class="files-breadcrumb"
      root="Personal Files"
      [target]="documentList"
      [folderNode]="documentList.folderNode">
    </adf-breadcrumb>
  </adf-toolbar-title>

  <div class="adf-toolbar--spacer"></div>

  <adf-upload-button
    [rootFolderId]="documentList.currentFolderId"
    [adf-node-permission]="'create'"
    (success)="uploadSuccess($event)">
  </adf-upload-button>

</adf-toolbar>

<adf-document-list
  #documentList
  [currentFolderId]="folderId"
  (preview)="showPreview($event)">
</adf-document-list>

<adf-file-uploading-dialog></adf-file-uploading-dialog>

 

this is a standard use of the uploadbutton and document list, with a variable folderId.

When I change the folderId variable:

this.folderId = sitecontainerEntry.entry.id;

i get following error:

ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'null'. Current value: '37a263eb-2f39-4e91-8d56-abb7add18b63'.
    at viewDebugError (core.js:9801)
    at expressionChangedAfterItHasBeenCheckedError (core.js:9779)
    at checkBindingNoChanges (core.js:9948)
    at checkNoChangesNodeInline (core.js:14002)
    at checkNoChangesNode (core.js:13976)
    at debugCheckNoChangesNode (core.js:14805)
    at debugCheckDirectivesFn (core.js:14707)
    at Object.eval [as updateDirectives] (SamenwerkingssiteComponent.html:13)
    at Object.debugUpdateDirectives [as updateDirectives] (core.js:14689)
    at checkNoChangesView (core.js:13814)

It doesn't matter what my initial value was (in this case null, but it can be -root- or something else), i get the same error.

 

The upload button still works fine after getting the error, but it's just not 'clean'.

 

Best regards,

David.

Outcomes