fix: CSS selectors for listing icons (#3277)
This commit is contained in:
1 parent
6ca3d5a573
commit
2a90cdfdaf
2 files changed
+10
-14
No files matched your search
@@ -275,12 +275,10 @@ const open = () => {
|
||||
};
|
||||
|
||||
const getExtension = (fileName: string): string => {
|
||||
const lastDotIndex = fileName.lastIndexOf('.');
|
||||
const lastDotIndex = fileName.lastIndexOf(".");
|
||||
if (lastDotIndex === -1) {
|
||||
return fileName;
|
||||
}
|
||||
return fileName.substring(lastDotIndex );
|
||||
return fileName.substring(lastDotIndex);
|
||||
};
|
||||
|
||||
|
||||
</script>
|
||||
Reference in new issue
Block a user