Chore: Fix failure when importing dashboard (#76947)
This commit is contained in:
1 parent
bd8ee9b0eb
commit
b04a014341
1 file changed
+4
@@ -60,6 +60,10 @@ func syncFieldsWithModel(libraryElement *model.LibraryElement) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if modelLibraryElement == nil {
|
||||
modelLibraryElement = make(map[string]any)
|
||||
}
|
||||
|
||||
if model.LibraryElementKind(libraryElement.Kind) == model.VariableElement {
|
||||
modelLibraryElement["name"] = libraryElement.Name
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user