Also replace icons afterUpdate

This commit is contained in:
Alice Gaudon 2021-11-21 20:18:15 +01:00
parent 10d5d16967
commit 5cfdecfebf

View File

@ -1,6 +1,6 @@
<script lang="ts">
import {replaceIcons} from "../../ts/icons.js";
import {onMount} from "svelte";
import {afterUpdate, onMount} from "svelte";
export let name: string;
@ -8,6 +8,9 @@
replaceIcons(true);
});
afterUpdate(() => {
replaceIcons(false);
});
</script>
<style lang="scss">