fixed bad commit and reverted prior to create note. Also added note id linking for iframe
This commit is contained in:
+3
-1
@@ -101,7 +101,9 @@ const App: Component = () => {
|
||||
<Suspense fallback={<div class="flex items-center justify-center h-full"><div class="animate-spin rounded-full h-8 w-8 border-b-2 border-primary"></div></div>}>
|
||||
<Show when={getEmbedView() === 'embed_notes'}>
|
||||
{(() => {
|
||||
const [selectedNoteId, setSelectedNoteId] = createSignal<string | null>(null);
|
||||
const searchParams = new URLSearchParams(window.location.search);
|
||||
const noteIdFromUrl = searchParams.get('noteId');
|
||||
const [selectedNoteId, setSelectedNoteId] = createSignal<string | null>(noteIdFromUrl);
|
||||
return <NotepadView selectedNoteId={selectedNoteId()} setSelectedNoteId={setSelectedNoteId} />;
|
||||
})()}
|
||||
</Show>
|
||||
|
||||
Reference in New Issue
Block a user