surrealdb / surrealist

Surrealist is the ultimate way to visually manage your SurrealDB database
https://surrealist.app/
MIT License
1.06k stars 81 forks source link

[v2] Error on adding arguments to function #196

Closed oskar-gmerek closed 4 months ago

oskar-gmerek commented 4 months ago

Describe the bug When we try to add argument during creating new function, we will get an error instead of form.

https://github.com/surrealdb/surrealist/assets/53402105/15a03e82-69a0-4e2d-a8b8-e20b0d469aa2

To Reproduce Steps to reproduce the behavior:

  1. Go to Functions in Surrealist menu
  2. Create new function for ex. fn::test
  3. Click on + to add new Argument
  4. See the error
  5. From this point you need to create a new connection (is impossible to use existing connection as there is no way to choose it)

Expected behavior

  1. App should not end with the error and display form for adding argument
  2. After error there should be possible to use Surrealist as before the error occur, or at least there should be a menu with saved connections on the landing screen

Environment:

Paste your environment here by following these steps
Platform: Desktop
OS: Darwin
Architecture: x86_64
WebView: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)
Version: 2.0.0
Flags: featureFlags: false, models_view: true, apidocs_view: true, themes: false, newsfeed: true

and similar on:

Platform: Desktop
OS: Darwin
Architecture: aarch64
WebView: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)
Version: 2.0.0
Flags: featureFlags: false, models_view: true, apidocs_view: true, themes: false, newsfeed: true

but, on Macbook (2nd one) there is at least a menu to fill out new connection form with template (but this still creating new unnecessary connection).

branislav91srb commented 4 months ago

I have the same problem.

macjuul commented 4 months ago

Duplicate of #194

Already fixed and will be included in the next patch release!