Skip to content

Commit

Permalink
fix(layermanager): Safer clean folders catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipLeitner committed Jul 26, 2024
1 parent 6087f46 commit dcf45c8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,12 @@ export class HsLayerManagerFolderService {
return newState;
} catch (error) {
console.error(
getTitle(lyr.layer)
lyr?.layer && getTitle(lyr.layer)
? `There was an error while cleaning folders after ${getTitle(lyr.layer)} was removed`
: 'There was an attempt to clean folders without valid layer param provided',
error,
);
return state;
}
}

Expand Down

0 comments on commit dcf45c8

Please sign in to comment.