fix msg
Some checks failed
build / Build (push) Failing after 9s
test / Run tests (push) Failing after 9s

This commit is contained in:
2025-01-26 15:57:42 +08:00
parent 9f8f7c8347
commit 23b8efcdf5
4 changed files with 26 additions and 12 deletions

View File

@ -1,7 +1,7 @@
import { Script } from "@App/app/repo/scripts";
export function storageKey(script: Script): string {
if (script.metadata.storagename) {
if (script.metadata && script.metadata.storagename) {
return script.metadata.storagename[0];
}
return script.uuid;