diff --git a/docker/postgres/init.sql b/docker/postgres/init.sql index 4e1bdaa..3ae4635 100644 --- a/docker/postgres/init.sql +++ b/docker/postgres/init.sql @@ -40,6 +40,8 @@ GRANT ALL PRIVILEGES ON SEQUENCE notebook_spark_apps_id_seq TO server; -- Add some initial data INSERT INTO notebooks (name, path) VALUES ('demo.ipynb', 'work/demo.ipynb'); INSERT INTO notebooks (name, path) VALUES ('notebook.ipynb', 'work/notebook.ipynb'); +INSERT INTO notebooks (name, path) VALUES ('quickstart.ipynb', 'work/quickstart.ipynb'); +INSERT INTO notebooks (name, path) VALUES ('sg-resale-flat-prices.ipynb', 'work/sg-resale-flat-prices/sg-resale-flat-prices.ipynb'); INSERT INTO directories (name, path) VALUES ('work', '/work'); INSERT INTO directories (name, path) VALUES ('word-count', '/work/word-count'); diff --git a/webapp/src/components/notebook/content/Runs.js b/webapp/src/components/notebook/content/Runs.js index d072d50..6f91f37 100644 --- a/webapp/src/components/notebook/content/Runs.js +++ b/webapp/src/components/notebook/content/Runs.js @@ -18,7 +18,7 @@ function Runs({ }; fetchSparkApps(); - }, [contentType]); + }, [contentType, notebook]); return ( ) - : ('Loading...')} + : ('No Spark Applications associated with this notebook.')}