Skip to content

Commit

Permalink
modify value
Browse files Browse the repository at this point in the history
  • Loading branch information
tomokazu tantaka committed Oct 30, 2024
1 parent 31d38f6 commit 25c10c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/pkg/scene/builder/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ func AddItemFromPropertyJSON(ctx context.Context, prop *property.Property, ps *p
func parsePropertyValue(ctx context.Context, value interface{}) (*property.Value, bool) {
if fieldObj, ok := value.(map[string]interface{}); ok {
if fieldType, ok := fieldObj["type"].(string); ok {
if fieldVal, ok := fieldObj["value"].(string); ok {
if fieldVal, ok := fieldObj["value"]; ok {
if fieldType == "url" {
urlVal, err := url.Parse(fieldVal)
urlVal, err := url.Parse(fieldVal.(string))
if err != nil {
log.Infofc(ctx, "invalid url: %v\n", err.Error())
return nil, false
Expand Down

0 comments on commit 25c10c7

Please sign in to comment.