Skip to content

Commit

Permalink
variable name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
briangregoryholmes committed Dec 20, 2024
1 parent 3596b0d commit 0d50088
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
export let filePath: string;
export let isDir: boolean;
$: ({ instanceId } = $runtime);
let error: string;
const [folderName, fileName] = splitFolderAndFileName(filePath);
Expand Down Expand Up @@ -85,7 +87,7 @@
}
try {
const newPath = (folderName ? `${folderName}/` : "") + values.newName;
await renameFileArtifact(runtimeInstanceId, filePath, newPath);
await renameFileArtifact(instanceId, filePath, newPath);
if (isDir) {
if (
$page.url.pathname.startsWith(
Expand All @@ -112,7 +114,6 @@
},
});
$: ({ instanceId } = $runtime);
$: existingDirectories = useDirectoryNamesInDirectory(instanceId, folderName);
$: fileNamesInDirectory = useFileNamesInDirectory(instanceId, folderName);
</script>
Expand Down

0 comments on commit 0d50088

Please sign in to comment.