LPS-40757 Apply to Documents and Media Display and Media Gallery
LPS-40757 Remove unnecessary variable