1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00

check 'path' for 'empty' as well (#4785) (#4787)

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
This commit is contained in:
Miguel de la Cruz 2023-06-20 19:05:55 +02:00 committed by GitHub
parent 8020b19f31
commit 22cdd82131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ func (a *App) GetFile(teamID, rootID, fileName string) (*mmModel.FileInfo, files
var filePath string
if fileInfo != nil && fileInfo.Path != "" {
if fileInfo != nil && fileInfo.Path != "" && fileInfo.Path != emptyString {
filePath = fileInfo.Path
} else {
filePath = filepath.Join(teamID, rootID, fileName)