You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a RemoteFileNode, there seems to be an issue with the file extension having a duplicate dot. This is due to the way the extension is being appended in the code.
The code:
ext: extension ? `.${extension}` : undefined,
results in a double dot before the file extension, e.g., ..jpg, since the extension variable already contains a dot.
Expected behavior
The file extension should only have one dot before it, e.g., .jpg.
Solution:
To fix this, the dot before extension in the template literal can be removed:
Describe the bug
When creating a RemoteFileNode, there seems to be an issue with the file extension having a duplicate dot. This is due to the way the extension is being appended in the code.
The code:
results in a double dot before the file extension, e.g., ..jpg, since the extension variable already contains a dot.
Expected behavior
The file extension should only have one dot before it, e.g., .jpg.
Solution:
To fix this, the dot before extension in the template literal can be removed:
ext: extension || undefined
Here is the code line:
plugins/packages/gatsby-source-airtable/gatsby-node.js
Line 309 in b7b48b7
The text was updated successfully, but these errors were encountered: